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

@ -12,6 +12,7 @@ export default defineConfig({
rewrites: getRewrites(),
mpa: true,
lang: 'en-US',
ignoreDeadLinks: true,
locales: {
'zh-CN': {
lang: 'zh-CN',

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/`
}
]
}
]
}

View File

@ -3,14 +3,44 @@ const componentsDir = `/zh-CN/components/`
export const getSidebar = (): DefaultTheme.Sidebar => {
return {
'/zh-CN/components/': [
[componentsDir]: [
{
text: 'Button 按钮',
link: `${componentsDir}button/`
text: '通用',
items: [
{
text: 'Button 按钮',
link: `${componentsDir}button/`
}
]
},
{
text: 'ConfigProvider',
link: `${componentsDir}config-provider/`
text: '布局',
items: []
},
{
text: '导航',
items: []
},
{
text: '数据入录',
items: []
},
{
text: '数据展示',
items: []
},
{
text: '反馈',
items: []
},
{
text: '其他',
items: [
{
text: 'ConfigProvider',
link: `${componentsDir}config-provider/`
}
]
}
]
}