docs: add active match option to highlight nav item

pull/654/head
Kia Ishii 3 years ago
parent ef3e44c5a2
commit 439f370355

@ -39,8 +39,8 @@ export default defineConfig({
function nav() {
return [
{ text: 'Guide', link: '/guide/what-is-vitepress' },
{ text: 'Configs', link: '/config/introduction' },
{ text: 'Guide', link: '/guide/what-is-vitepress', activeMatch: '/guide/' },
{ text: 'Configs', link: '/config/introduction', activeMatch: '/config/' },
{
text: 'Release Notes',
link: 'https://github.com/vuejs/vitepress/releases'

Loading…
Cancel
Save