feat: add info

This commit is contained in:
2023-04-16 21:52:44 +08:00
parent 5d5653d3bd
commit e5896c093a
10 changed files with 319 additions and 36 deletions

View File

@ -4,14 +4,44 @@ const componentsDir = `/components/`
export const getSidebar = (): DefaultTheme.Sidebar => {
return {
'/components/': [
[componentsDir]: [
{
text: 'Button',
link: `${componentsDir}button/`
text: 'General',
items: [
{
text: 'Button',
link: `${componentsDir}button/`
}
]
},
{
text: 'ConfigProvider',
link: `${componentsDir}config-provider/`
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/`
}
]
}
]
}