nzjsdsk's picture
Upload 169 files
27e74f3 verified
raw
history blame
407 Bytes
import { getMdFilesAsync } from "../utils";
import path from 'path';
import { DefaultTheme } from 'vitepress';
export function getGuideSideBarItems(): (DefaultTheme.SidebarItem)[] {
return getMdFilesAsync(path.resolve(__dirname, '../../guide'))
.map(item => {
return {
text: item,
link: `/guide/${item}`
}
}).filter(item => {
return !item.text.includes('使用文档')
})
}