mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 17:49:18 +08:00
49 lines
842 B
TypeScript
49 lines
842 B
TypeScript
import type { DefaultTheme } from 'vitepress'
|
|
|
|
const componentsDir = `/components/`
|
|
|
|
export const getSidebar = (): DefaultTheme.Sidebar => {
|
|
return {
|
|
[componentsDir]: [
|
|
{
|
|
text: 'General',
|
|
items: [
|
|
{
|
|
text: 'Button',
|
|
link: `${componentsDir}button/`
|
|
}
|
|
]
|
|
},
|
|
{
|
|
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/`
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|