antd-tiny-vue/.vitepress/config/en-US/sidebar.ts

49 lines
842 B
TypeScript
Raw Normal View History

2023-04-16 18:09:13 +08:00
import type { DefaultTheme } from 'vitepress'
const componentsDir = `/components/`
export const getSidebar = (): DefaultTheme.Sidebar => {
return {
2023-04-16 21:52:44 +08:00
[componentsDir]: [
2023-04-16 18:09:13 +08:00
{
2023-04-16 21:52:44 +08:00
text: 'General',
items: [
{
text: 'Button',
link: `${componentsDir}button/`
}
]
2023-04-16 18:09:13 +08:00
},
{
2023-04-16 21:52:44 +08:00
text: 'Layout',
items: []
},
{
text: 'Navigation',
items: []
},
{
text: 'Data Entry',
items: []
},
{
text: 'Data Display',
items: []
},
{
text: 'Feedback',
items: []
},
{
text: 'Other',
items: [
{
text: 'ConfigProvider',
link: `${componentsDir}config-provider/`
}
]
2023-04-16 18:09:13 +08:00
}
]
}
}