You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { defineConfig, type DefaultTheme } from 'vitepress'
|
|
|
|
|
|
|
|
const sidebar: DefaultTheme.Config['sidebar'] = {
|
|
|
|
'/': [
|
|
|
|
{
|
|
|
|
text: 'Frontmatter',
|
|
|
|
collapsed: false,
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Multiple Levels Outline',
|
|
|
|
link: '/frontmatter/multiple-levels-outline'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: '& <Text Literals &> <code>code</code>',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: '& <Test Page &> <code>code</code>',
|
|
|
|
link: '/text-literals/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Static Data',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Test Page',
|
|
|
|
link: '/static-data/data'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Multi Sidebar Test',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Test Page',
|
|
|
|
link: '/multi-sidebar/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Dynamic Routes',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Foo',
|
|
|
|
link: '/dynamic-routes/foo'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Bar',
|
|
|
|
link: '/dynamic-routes/bar'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'/multi-sidebar/': [
|
|
|
|
{
|
|
|
|
text: 'Multi Sidebar',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: 'Test Page',
|
|
|
|
link: '/multi-sidebar/'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Back',
|
|
|
|
link: '/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
title: 'Example',
|
|
|
|
description: 'An example app using VitePress.',
|
|
|
|
themeConfig: {
|
|
|
|
sidebar
|
|
|
|
}
|
|
|
|
})
|