Skip to content

Commit da08e65

Browse files
authored
Fixed bug in highlighting current navbar selection
explanation of issue: concepts navbar item was always highlighted blue and concepts and dev tools items were only highlighted blue when on the first page of their respective page structures Signed-off-by: 0xbentobyte <[email protected]>
1 parent 4077dec commit da08e65

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docusaurus.config.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,24 @@ const config = {
109109
},
110110
items: [
111111
{
112-
to: '/',
113-
label: 'Concepts',
112+
type: 'doc',
113+
docId: 'Introduction',
114114
position: 'left',
115-
className: 'V3_active',
115+
label: 'Concepts',
116116
},
117117
{
118-
to: '/contracts/protocol-overview',
119-
label: 'Contracts',
118+
type: 'doc',
119+
docId: 'protocol-overview',
120+
docsPluginId: 'contracts',
120121
position: 'left',
121-
className: 'V3_active',
122+
label: 'Contracts',
122123
},
123124
{
124-
to: '/dev/overview',
125-
label: 'Dev Tools',
125+
type: 'doc',
126+
docId: 'overview',
127+
docsPluginId: 'dev',
126128
position: 'left',
127-
className: 'V3_active',
129+
label: 'Dev Tools',
128130
},
129131
{
130132
to: 'https://github.com/0xIntuition',

0 commit comments

Comments
 (0)