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

guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git


The following commit(s) were added to refs/heads/main by this push:
     new 7ec1d8fdf docs: fix doc version inconsistency in navbar (#1138)
7ec1d8fdf is described below

commit 7ec1d8fdf79bf971c7f276a69e74e8aa4efd9243
Author: Tim Hsiung <[email protected]>
AuthorDate: Sat Mar 7 10:21:12 2026 +0800

    docs: fix doc version inconsistency in navbar (#1138)
---
 website/docusaurus.config.ts | 33 ++++++++++++++++++++++-----------
 website/src/css/custom.css   |  5 +++++
 2 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index a71dba775..9b99492e2 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -146,8 +146,9 @@ const config: Config = {
               href: 'https://www.apache.org/foundation/how-it-works.html',
             },
             {
+              type: 'doc',
+              docId: 'about/how-to-contribute',
               label: 'How to Contribute',
-              to: '/docs/about/how-to-contribute',
             },
           ],
         },
@@ -158,30 +159,36 @@ const config: Config = {
           position: 'left',
           items: [
             {
+              type: 'doc',
+              docId: 'qumat/index',
               label: 'Overview',
-              to: '/docs/qumat',
             },
             {
+              type: 'doc',
+              docId: 'qumat/getting-started',
               label: 'Getting Started',
-              to: '/docs/qumat/getting-started',
             },
             {
+              type: 'doc',
+              docId: 'qdp/index',
               label: 'QDP (Data Encoding)',
-              to: '/docs/qdp',
             },
             {
+              type: 'doc',
+              docId: 'learning/quantum-computing-primer/index',
               label: 'Quantum Computing Primer',
-              to: '/docs/learning/quantum-computing-primer',
             },
             {
+              type: 'doc',
+              docId: 'learning/papers/index',
               label: 'Research Papers',
-              to: '/docs/learning/papers',
             },
           ],
         },
         // Download
         {
-          to: '/docs/qumat/getting-started',
+          type: 'doc',
+          docId: 'qumat/getting-started',
           label: 'Download',
           position: 'left',
         },
@@ -192,24 +199,28 @@ const config: Config = {
           position: 'left',
           items: [
             {
+              type: 'doc',
+              docId: 'community/index',
               label: 'Overview',
-              to: '/docs/community',
             },
             {
+              type: 'doc',
+              docId: 'community/who-we-are',
               label: 'Who We Are',
-              to: '/docs/community/who-we-are',
             },
             {
+              type: 'doc',
+              docId: 'community/mailing-lists',
               label: 'Mailing Lists',
-              to: '/docs/community/mailing-lists',
             },
             {
               label: 'Issue Tracker',
               href: 'https://issues.apache.org/jira/browse/MAHOUT',
             },
             {
+              type: 'doc',
+              docId: 'community/code-of-conduct',
               label: 'Code of Conduct',
-              to: '/docs/community/code-of-conduct',
             },
           ],
         },
diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index c1c0459cf..e171b431b 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -109,6 +109,11 @@
   color: var(--ifm-font-color-base);
 }
 
+/* Remove background color from active dropdown links, probably a bug in 
Docusaurus */
+.dropdown__link--active:not(:hover) {
+  background-color: unset;
+}
+
 /* Dark mode navbar adjustments */
 [data-theme='dark'] .navbar {
   background-color: #00838f;

Reply via email to