Skip to content

Commit 1a0ea6a

Browse files
committed
feat: enhance navigation with active matches and add copyright footer
1 parent a5cf443 commit 1a0ea6a

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.vitepress/config.ts

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,26 @@ export default withMermaid(
100100
themeConfig: {
101101
// https://vitepress.dev/reference/default-theme-config
102102
nav: [
103-
{ text: 'Get Started', link: '/get-started/welcome' },
104-
{ text: 'Guides', link: '/guides/build-iapp/build-&-test' },
105-
{ text: 'References', link: '/references/dataProtector' },
106-
{ text: 'Protocol', link: '/protocol/proof-of-contribution' },
103+
{
104+
text: 'Get Started',
105+
link: '/get-started/welcome',
106+
activeMatch: '^/get-started/',
107+
},
108+
{
109+
text: 'Guides',
110+
link: '/guides/build-iapp/build-&-test',
111+
activeMatch: '^/guides/',
112+
},
113+
{
114+
text: 'References',
115+
link: '/references/dataProtector',
116+
activeMatch: '^/references/',
117+
},
118+
{
119+
text: 'Protocol',
120+
link: '/protocol/proof-of-contribution',
121+
activeMatch: '^/protocol/',
122+
},
107123
{
108124
component: 'ChainSelector',
109125
props: {
@@ -114,6 +130,9 @@ export default withMermaid(
114130
outline: {
115131
level: [2, 4],
116132
},
133+
footer: {
134+
copyright: '© All Rights Reserved iExec 2018-present',
135+
},
117136

118137
sidebar: getSidebar(),
119138

0 commit comments

Comments
 (0)