This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new ba3a36e  [website] Fix a few broken links (#2303)
ba3a36e is described below

commit ba3a36e60b611098bae7684a60e939c081c16f65
Author: Sijie Guo <[email protected]>
AuthorDate: Fri Aug 3 03:29:29 2018 -0700

    [website] Fix a few broken links (#2303)
    
    * [website] Fix a few broken links
    
     ### Changes
    
    - missing hyperlink in `release-notes`
    - add latest release in `release.json`
    - fixing replace script since version already has `-incubating`
    
     ### NOTE
    
    currently we have `releases.json` and `versions.json`. we should 
consolidate them in subsequent PRs
---
 site2/docs/io-overview.md                          |  2 +-
 site2/website/pages/en/index.js                    | 10 +++----
 site2/website/release-notes.md                     |  2 +-
 site2/website/releases.json                        |  3 +-
 site2/website/scripts/replace.js                   | 34 ++++++++++++----------
 .../version-2.1.0-incubating/io-overview.md        |  2 +-
 6 files changed, 28 insertions(+), 25 deletions(-)

diff --git a/site2/docs/io-overview.md b/site2/docs/io-overview.md
index 1568caf..0c55716 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:
 
-![Pulsar IO diagram](assets/pulsar-io.png "Pulsar IO connectors (sources and 
sinks")
+![Pulsar IO diagram](assets/pulsar-io.png "Pulsar IO connectors (sources and 
sinks)")
 
 ## Working with connectors
 
diff --git a/site2/website/pages/en/index.js b/site2/website/pages/en/index.js
index d06920b..7f1638f 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 43dadcc..1745e9d 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 6c69733..9ea62bc 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 2c83b03..25e48c1 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 75c051a..0c82fad 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:
 
-![Pulsar IO diagram](assets/pulsar-io.png "Pulsar IO connectors (sources and 
sinks")
+![Pulsar IO diagram](assets/pulsar-io.png "Pulsar IO connectors (sources and 
sinks)")
 
 ## Working with connectors
 

Reply via email to