From 5c45fd6fdbbeb648fc72d9e6079d143d96a53af0 Mon Sep 17 00:00:00 2001 From: NateWilliams2 Date: Thu, 11 Apr 2024 13:10:11 -0400 Subject: [PATCH] Fix navbar dropdown active links --- docusaurus.config.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 146e4f132..0fe0f5f41 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -140,22 +140,24 @@ const config = { position: 'left', items: [ { - type: 'doc', - docId: 'sdk/index', + to: 'sdk', label: 'SDK', - className: 'plausible-event-name=Header+SDK' + activeBasePath: 'sdk' }, { - type: 'doc', - docId: 'ui-components/index', + to: 'vocdoni-api/vocdoni-api', + label: 'API', + activeBasePath: 'vocdoni-api' + }, + { + to: 'ui-components', label: 'UI Components', - className: 'plausible-event-name=Header+UICOMPONENTS' + activeBasePath: 'ui-components' }, { - type: 'doc', - docId: 'protocol/index', + to: 'protocol', label: 'Protocol', - className: 'plausible-event-name=Header+API' + activeBasePath: 'protocol' } ] },