RLE-wiki/docs/.vitepress/sidebar.ts

29 lines
808 B
TypeScript
Raw Normal View History

import { type DefaultTheme } from 'vitepress'
import { generateSidebar } from 'vitepress-sidebar'
export const sidebar = generateSidebar([
// 大学指南
{
documentRootPath: '/docs',
scanStartPath: 'campus',
resolvePath: '/campus/',
useTitleFromFrontmatter: true,
},
// 贡献指南
{
documentRootPath: '/docs',
scanStartPath: 'contributor-guide',
resolvePath: '/contributor-guide/',
useTitleFromFrontmatter: true,
},
// Fashion
{
documentRootPath: '/docs',
scanStartPath: 'fashion',
resolvePath: '/fashion/',
useTitleFromFrontmatter: true,
}
// 这个 `as` 源于 vitepress-sidebar 的类型定义与实际情况的差异,目前不影响使用,后续 vitepress-sidebar 修复后可以移除。
]) as DefaultTheme.Config['sidebar']