You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zk...@apache.org on 2023/08/11 02:58:28 UTC

[incubator-devlake-website] branch main updated: fix: fixed the versioning again (#620)

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

zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 72eef8d5a7 fix: fixed the versioning again (#620)
72eef8d5a7 is described below

commit 72eef8d5a76572360edcab7d26368b5259573c00
Author: Yumeng Wang <yu...@merico.dev>
AuthorDate: Fri Aug 11 10:58:23 2023 +0800

    fix: fixed the versioning again (#620)
---
 docusaurus.config.js | 34 +++++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index b06d9f78d1..5b562f5fb5 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -35,12 +35,36 @@ const versions = require('./versions.json');
             theme: { light: 'neutral', dark: 'forest' }
           }]],
           rehypePlugins: [katex],
-          lastVersion: 'v0.17',
+          lastVersion: 'current',
           versions: {
             current: {
               label: 'Next',
-              path: 'next',
-              banner: 'unreleased',
+              path: '',
+              banner: 'none',
+            },
+            "v0.18":{
+              banner: 'none',
+            },
+            "v0.17":{
+              banner: 'none',
+            },
+            "v0.16":{
+              banner: 'none',
+            },
+            "v0.15":{
+              banner: 'none',
+            },
+            "v0.14":{
+              banner: 'none',
+            },
+            "v0.13":{
+              banner: 'none',
+            },
+            "v0.12":{
+              banner: 'none',
+            },
+            "v0.11":{
+              banner: 'none',
             }
           }
         },
@@ -134,7 +158,7 @@ const versions = require('./versions.json');
             items: [
               {
                 label: "Next",
-                to: "/docs/next/Overview/Introduction"
+                to: "/docs/Overview/Introduction"
               },
               {
                 label: versions[0] + ' (Beta)',
@@ -142,7 +166,7 @@ const versions = require('./versions.json');
               },
               {
                 label: versions[1] + ' (Stable)',
-                to: "/docs/Overview/Introduction"
+                to: "/docs/"+versions[1]+"/Overview/Introduction"
               },
               ...versions.slice(2, versions.length).map((version) => ({
                 label: version,