From 435cb3bf102a3f2e10373b259a8c2d90c2b0f46a Mon Sep 17 00:00:00 2001 From: andatoshiki <101481353+andatoshiki@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:42:46 +0800 Subject: [PATCH] test(nav): add navbar grouped sections with K-12 under academics --- docs/.vitepress/config/nav.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/config/nav.ts b/docs/.vitepress/config/nav.ts index 8bf04581..bcb5733f 100644 --- a/docs/.vitepress/config/nav.ts +++ b/docs/.vitepress/config/nav.ts @@ -4,11 +4,15 @@ export const nav: DefaultTheme.Config['nav'] = [ { text: '๐Ÿ“š Academic', items: [ - { text: '๐Ÿงช Chemistry', link: '/academic/chemistry/index', activeMatch: '/academic/chemistry/' }, - { text: 'โœ๏ธ Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' }, + { + text: 'K-12', + items: [ + { text: '๐Ÿงช Chemistry', link: '/academic/chemistry/index', activeMatch: '/academic/chemistry/' }, + { text: '๐Ÿงฎ Discrete Math.', link: '/discrete-math/index', activeMatch: '/categories/fragments/' }, + { text: 'โœ๏ธ Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' }, + ], + }, { text: '', link: '', activeMatch: '' }, - { text: '๐Ÿงฎ Discrete Math.', link: '/discrete-math/index', activeMatch: '/categories/fragments/' }, - { text: '๐Ÿฅ  Vocabulary', link: '/academic/vocabulary/index', activeMatch: '/academic/vocabulary/' }, { text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' }, @@ -20,7 +24,10 @@ export const nav: DefaultTheme.Config['nav'] = [ }, { text: '๐Ÿ’พ Save', - items: [{ text: '๐Ÿ“ฐ Reading', link: '/save/reading/index', activeMatch: '/save/reading/' }], - activeMatch: '/courses/', + items: [ + { text: '๐Ÿ“ฐ Reading', link: '/save/reading/index', activeMatch: '/save/reading/' }, + { text: '๐Ÿฅ  Vocabulary', link: '/academic/vocabulary/index', activeMatch: '/academic/vocabulary/' }, + ], + activeMatch: '/save/', }, ]