You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by yu...@apache.org on 2022/10/21 11:38:53 UTC

[incubator-devlake-website] branch main updated: fixed: dropdown active state not working in other state (#285)

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

yumeng 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 313e8b9b0 fixed: dropdown active state not working in other state (#285)
313e8b9b0 is described below

commit 313e8b9b0beb4d5a3f20c2dfc45cdb41d6ffcb84
Author: BivasBiswas <75...@users.noreply.github.com>
AuthorDate: Fri Oct 21 17:08:49 2022 +0530

    fixed: dropdown active state not working in other state (#285)
---
 docusaurus.config.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index f4c9f92b6..e85e18b86 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -133,14 +133,17 @@ const versions = require('./versions.json');
               {
                 label: "Latest",
                 to: "/docs/Overview/Introduction",
+                activeBaseRegex: `docs(?!(\/${versions.join('|\\/')}))`,
               },
               ...versions.slice(0, versions.length - 2).map((version) => ({
                 label: version,
                 to: `docs/${version}/Overview/Introduction`,
+                activeBaseRegex: `docs/${version}/`,
               })),
               ...versions.slice(versions.length - 2, versions.length).map((version) => ({
                 label: (version === "1.x") ? "1.x(Not Apache Release)" : version,
                 to: `docs/${version}/Overview/Introduction`,
+                activeBaseRegex: `docs/${version}/`,
               }))
             ]
           },