jiazhai closed pull request #2303: [website] Fix a few broken links
URL: https://github.com/apache/incubator-pulsar/pull/2303
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/site2/docs/io-overview.md b/site2/docs/io-overview.md
index 1568caf16e..0c5571628e 100644
--- a/site2/docs/io-overview.md
+++ b/site2/docs/io-overview.md
@@ -18,7 +18,7 @@ Pulsar IO connectors come in two types:
This diagram illustrates the relationship between sources, sinks, and Pulsar:
-
+")
## Working with connectors
diff --git a/site2/website/pages/en/index.js b/site2/website/pages/en/index.js
index d06920b833..7f1638f1f6 100755
--- a/site2/website/pages/en/index.js
+++ b/site2/website/pages/en/index.js
@@ -108,17 +108,17 @@ const features_lang = language => {
},
{
content: 'Pulsar has run in production at Yahoo scale for over 3
years, with millions of messages per second across millions of topics',
- title: `[Proven in production](${docUrl('concepts-architecture',
language)})`,
+ title: `[Proven in
production](${docUrl('concepts-architecture-overview', language)})`,
},
{
content: 'Seamlessly expand capacity to hundreds of nodes',
- title: `[Horizontally scalable](${docUrl('concepts-architecture',
language)})`,
+ title: `[Horizontally
scalable](${docUrl('concepts-architecture-overview', language)})`,
}
],
row2: [
{
content: 'Designed for low publish latency (< 5ms) at scale with
strong durabilty guarantees',
- title: `[Low latency with
durability](${docUrl('concepts-architecture', language)})`,
+ title: `[Low latency with
durability](${docUrl('concepts-architecture-overview', language)})`,
},
{
content: 'Designed for configurable replication between data centers
across multiple geographic regions',
@@ -126,13 +126,13 @@ const features_lang = language => {
},
{
content: 'Built from the ground up as a multi-tenant system. Supports
Isolation, Authentication, Authorization and Quotas',
- title: `[Multi-tenancy](${docUrl('concepts-architecture', language)})`,
+ title: `[Multi-tenancy](${docUrl('concepts-multi-tenancy',
language)})`,
}
],
row3: [
{
content: `Persistent message storage based on Apache BookKeeper.
Provides IO-level isolation between write and read operations`,
- title: `[Persistent storage](${docUrl('concepts-architecture',
language)})`,
+ title: `[Persistent
storage](${docUrl('concepts-architecture-overview#persistent-storage',
language)})`,
},
{
content: 'Flexible messaging models with high-level APIs for Java,
C++, Python and GO',
diff --git a/site2/website/release-notes.md b/site2/website/release-notes.md
index 43dadcc9b5..1745e9d637 100644
--- a/site2/website/release-notes.md
+++ b/site2/website/release-notes.md
@@ -8,7 +8,7 @@ This is the seventh release of Apache Pulsar since entering the
ASF incubator.
It is a feature release, including several new features and major improvements:
- [Pulsar IO](/docs/en/io-overview/): A connector framework for moving data in
and out of Apache Pulsar leveraging [Pulsar
Functions](/docs/en/functions-overview/) runtime.
-- A list of [Builtin Connectors]:
+- A list of [Builtin Connectors](/docs/en/io-connectors):
- [Aerospike Connector](/docs/en/io-aerospike/)
- [Cassandra Connector](/docs/en/io-cassandra/)
- [Kafka Connector](/docs/en/io-kafka/)
diff --git a/site2/website/releases.json b/site2/website/releases.json
index 6c69733c5c..9ea62bcc78 100644
--- a/site2/website/releases.json
+++ b/site2/website/releases.json
@@ -1,8 +1,9 @@
[
+ "2.1.0",
"2.0.1",
"1.22.1",
"1.22.0",
"1.21.0",
"1.20.0",
"1.19.0"
-]
\ No newline at end of file
+]
diff --git a/site2/website/scripts/replace.js b/site2/website/scripts/replace.js
index 2c83b03123..25e48c1ea6 100644
--- a/site2/website/scripts/replace.js
+++ b/site2/website/scripts/replace.js
@@ -55,6 +55,7 @@ function doReplace(options) {
const versions = getVersions();
const latestVersion = versions[0];
+const latestVersionWithoutIncubating = latestVersion.replace('-incubating',
'');
const from = [
/{{pulsar:version_number}}/g,
@@ -77,16 +78,16 @@ const options = {
ignore: versions.map(v => `${docsDir}/${v}/**/*`), // TODO add next and
assets
from: from,
to: [
+ `${latestVersionWithoutIncubating}`,
`${latestVersion}`,
- `${latestVersion}-incubating`,
- binaryReleaseUrl(`${latestVersion}-incubating`),
- connectorReleaseUrl(`${latestVersion}-incubating`),
+ binaryReleaseUrl(`${latestVersion}`),
+ connectorReleaseUrl(`${latestVersion}`),
downloadPageUrl(),
- rpmReleaseUrl(`${latestVersion}-incubating`, ""),
- rpmReleaseUrl(`${latestVersion}-incubating`, "-debuginfo"),
- rpmReleaseUrl(`${latestVersion}-incubating`, "-devel"),
- debReleaseUrl(`${latestVersion}-incubating`, ""),
- debReleaseUrl(`${latestVersion}-incubating`, "-dev"),
+ rpmReleaseUrl(`${latestVersion}`, ""),
+ rpmReleaseUrl(`${latestVersion}`, "-debuginfo"),
+ rpmReleaseUrl(`${latestVersion}`, "-devel"),
+ debReleaseUrl(`${latestVersion}`, ""),
+ debReleaseUrl(`${latestVersion}`, "-dev"),
],
dry: false
};
@@ -99,6 +100,7 @@ for (v of versions) {
if (v === latestVersion) {
continue
}
+ const vWithoutIncubating = v.replace('-incubating', '');
const opts = {
files: [
`${docsDir}/${v}/*.html`,
@@ -106,16 +108,16 @@ for (v of versions) {
],
from: from,
to: [
+ `${vWithoutIncubating}`,
`${v}`,
- `${v}-incubating`,
- binaryReleaseUrl(`${v}-incubating`),
- connectorReleaseUrl(`${v}-incubating`),
+ binaryReleaseUrl(`${v}`),
+ connectorReleaseUrl(`${v}`),
downloadPageUrl(),
- rpmReleaseUrl(`${v}-incubating`, ""),
- rpmReleaseUrl(`${v}-incubating`, "-debuginfo"),
- rpmReleaseUrl(`${v}-incubating`, "-devel"),
- debReleaseUrl(`${v}-incubating`, ""),
- debReleaseUrl(`${v}-incubating`, "-dev"),
+ rpmReleaseUrl(`${v}`, ""),
+ rpmReleaseUrl(`${v}`, "-debuginfo"),
+ rpmReleaseUrl(`${v}`, "-devel"),
+ debReleaseUrl(`${v}`, ""),
+ debReleaseUrl(`${v}`, "-dev"),
],
dry: true
};
diff --git
a/site2/website/versioned_docs/version-2.1.0-incubating/io-overview.md
b/site2/website/versioned_docs/version-2.1.0-incubating/io-overview.md
index 75c051ab04..0c82fad853 100644
--- a/site2/website/versioned_docs/version-2.1.0-incubating/io-overview.md
+++ b/site2/website/versioned_docs/version-2.1.0-incubating/io-overview.md
@@ -19,7 +19,7 @@ Pulsar IO connectors come in two types:
This diagram illustrates the relationship between sources, sinks, and Pulsar:
-
+")
## Working with connectors
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services