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

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


The following commit(s) were added to refs/heads/master by this push:
     new 68c13bd  add default version
68c13bd is described below

commit 68c13bdb828daa4e5c88d9f904b255380fd8b021
Author: XuYi <[email protected]>
AuthorDate: Thu Apr 4 17:53:15 2019 +0800

    add default version
---
 src/components/Global.vue    |  4 ++--
 src/views/Community.vue      | 12 ++++++------
 src/views/Development.vue    |  4 ++--
 src/views/Documents.vue      |  2 +-
 src/views/Example.vue        |  4 ++--
 src/views/LatestDoc.vue      |  8 ++++----
 src/views/SingleMaterial.vue | 10 +++++-----
 src/views/SingleTool.vue     | 24 ++++++++++++------------
 8 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/src/components/Global.vue b/src/components/Global.vue
index 16ef052..e9bb66c 100644
--- a/src/components/Global.vue
+++ b/src/components/Global.vue
@@ -6,7 +6,7 @@
 
   const cheerio = require('cheerio');
   const DOC_URL_PREFIX = 
"https://raw.githubusercontent.com/apache/incubator-iotdb/";;
-  const LATEST_VERSION = "0.7.0";
+  const DEFAULT_VERSION = "latest";
   const LATEST_STR = "latest";
   const SUPPORT_VERSION = {
     "latest": {
@@ -53,7 +53,7 @@
     downloadGrafanaConnector,
     downloadHadoopConnector,
     downloadSparkConnector,
-    LATEST_VERSION,
+    DEFAULT_VERSION,
     SUPPORT_VERSION,
     LATEST_STR,
     isReadyForPrerender
diff --git a/src/views/Community.vue b/src/views/Community.vue
index e1fa552..5ff7a07 100644
--- a/src/views/Community.vue
+++ b/src/views/Community.vue
@@ -52,14 +52,14 @@
       },
       fetchData() {
         const dict = {
-          "Powered By": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            "master" +
+          "Powered By": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+          Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Community-Powered%20By.md",
-          "Project Committers": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            "master" +
+          "Project Committers": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+          Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Community-Project%20Committers.md",
-          "History & Vision": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            "master" +
+          "History & Vision": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+          Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Community-History%26Vision.md",
         };
         const content = this.content();
diff --git a/src/views/Development.vue b/src/views/Development.vue
index 95cdd09..72b757f 100644
--- a/src/views/Development.vue
+++ b/src/views/Development.vue
@@ -49,8 +49,8 @@
         return this.$route.params.content
       },
       fetchData() {
-        let url = Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-          Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+        let url = Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] 
+
+          Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
           "/docs/Development.md";
         let pointer = this;
         axios.get(url).then(function (response) {
diff --git a/src/views/Documents.vue b/src/views/Documents.vue
index 6691a3d..58de385 100644
--- a/src/views/Documents.vue
+++ b/src/views/Documents.vue
@@ -93,7 +93,7 @@
         let version = this.getVersion();
         if(version in Golbal.SUPPORT_VERSION){
           if(version === Golbal.LATEST_STR){
-            this.version = Golbal.LATEST_VERSION;
+            this.version = Golbal.DEFAULT_VERSION;
           } else {
             this.version = version;
           }
diff --git a/src/views/Example.vue b/src/views/Example.vue
index 2840e4f..8104b67 100644
--- a/src/views/Example.vue
+++ b/src/views/Example.vue
@@ -41,8 +41,8 @@
     },
     methods: {
       fetchData() {
-        let url = Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-          Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+        let url = Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] 
+
+          Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
           "/docs/Documentation/OtherMaterial-Examples.md";
         const pointer = this;
         axios.get(url)
diff --git a/src/views/LatestDoc.vue b/src/views/LatestDoc.vue
index d923997..05c7c96 100644
--- a/src/views/LatestDoc.vue
+++ b/src/views/LatestDoc.vue
@@ -48,11 +48,11 @@
       },
       fetchData() {
         const dict = {
-          "Quick Start": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+          "Quick Start": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/QuickStart.md",
-          "Frequently asked questions": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+          "Frequently asked questions": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             '/docs/Documentation/Frequently%20asked%20questions.md',
         };
         const content = this.content();
diff --git a/src/views/SingleMaterial.vue b/src/views/SingleMaterial.vue
index fb8d4cf..4e369b7 100644
--- a/src/views/SingleMaterial.vue
+++ b/src/views/SingleMaterial.vue
@@ -45,13 +45,13 @@
       },
       fetchData() {
         const dict = {
-          "Release Notes": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+          "Release Notes": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/OtherMaterial-ReleaseNotes"+
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['version']+
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['version']+
             ".md",
-          "References": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+          "References": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/OtherMaterial-Reference.md",
         };
         const content = this.content();
diff --git a/src/views/SingleTool.vue b/src/views/SingleTool.vue
index 073f87b..ee6f8f6 100644
--- a/src/views/SingleTool.vue
+++ b/src/views/SingleTool.vue
@@ -48,22 +48,22 @@
       },
       fetchData() {
         const dict = {
-          "Cli": Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+          "Cli": Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/UserGuide" +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['version'] + 
"/7-Tools-Cli.md",
-          "Grafana": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['version'] + 
"/7-Tools-Cli.md",
+          "Grafana": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/UserGuide" +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['version'] + 
"/7-Tools-Grafana.md",
-          "Hadoop": 
Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['version'] + 
"/7-Tools-Grafana.md",
+          "Hadoop": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/UserGuide" +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['version'] + 
"/7-Tools-Hadoop.md",
-          "Spark": Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['doc-prefix'] 
+
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['branch'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['version'] + 
"/7-Tools-Hadoop.md",
+          "Spark": 
Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['doc-prefix'] +
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['branch'] +
             "/docs/Documentation/UserGuide" +
-            Golbal.SUPPORT_VERSION[Golbal.LATEST_VERSION]['version'] + 
"/7-Tools-spark.md",
+            Golbal.SUPPORT_VERSION[Golbal.DEFAULT_VERSION]['version'] + 
"/7-Tools-spark.md",
         };
         const content = this.content();
         console.log(content);

Reply via email to