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.
vitepress/examples/configured/.vitepress/config.js

65 lines
1.4 KiB

import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'Configured Example',
description: 'Example of configured options of VitePress',
themeConfig: {
sidebar: {
'/': [
{
text: 'Frontmatter',
collapsible: true,
items: [
{
text: 'Multiple levels outline',
link: '/frontmatter/multiple-levels-outline'
}
]
},
{
text: '& &#60;Text Literals &> <code>code</code>',
items: [
{
text: '& &#60;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/'
}
]
}
],
'/multi-sidebar/': [
{
text: 'Multi Sidebar',
items: [
{
text: 'Test Page',
link: '/multi-sidebar/'
},
{
text: 'Back',
link: '/'
}
]
}
]
}
}
})