fix: fix path for markdown-it-katex documentation index and add ipho formula jpn to nav

This commit is contained in:
andatoshiki 2023-03-22 15:35:04 +08:00
parent c4100645f6
commit b055e2c790

View File

@ -1,6 +1,10 @@
import { DefaultTheme } from 'vitepress/theme' import { DefaultTheme } from 'vitepress/theme'
export const nav: DefaultTheme.Config['nav'] = [ export const nav: DefaultTheme.Config['nav'] = [
{
text: 'Development',
link: '/development/',
},
{ {
text: 'Academic', text: 'Academic',
items: [ items: [
@ -12,6 +16,12 @@ export const nav: DefaultTheme.Config['nav'] = [
{ text: 'Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' }, { text: 'Literature', link: '/academic/literature/index', activeMatch: '/academic/literature/' },
], ],
}, },
{
text: 'Tools',
items: [
{ text: 'Formulas for IPhO JPN.', link: '/academic/physics/ipho-formulas-jpn/1', activeMatch: '/academic/physics/ipho-formulas-jpn/' },
]
},
{ text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' },
{ text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' },
{ text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' },
@ -31,7 +41,7 @@ export const nav: DefaultTheme.Config['nav'] = [
items: [ items: [
{ {
text: 'markdown-it-katex', text: 'markdown-it-katex',
link: '/application/markdown-it-katex/index', link: '/application/markdown-it-katex/how-to-use',
activeMatch: '/application/markdown-it-katex/', activeMatch: '/application/markdown-it-katex/',
}, },
{ text: '', link: '', activeMatch: '' }, { text: '', link: '', activeMatch: '' },