feat: add site group

This commit is contained in:
2023-02-26 09:13:45 +08:00
parent f732c214e3
commit 7b58fb84eb
3 changed files with 39 additions and 7 deletions

View File

@ -1,10 +1,12 @@
import type { DefaultTheme } from 'vitepress'
export const getSidebar = (): DefaultTheme.Sidebar => {
return [
{
text: 'Button 按钮',
link: '/components/button/'
}
]
return {
'/components/': [
{
text: 'Button 按钮',
link: '/components/button/'
}
]
}
}