mbcp/docs/.vitepress/config/common.ts

28 lines
776 B
TypeScript
Raw Normal View History

2024-08-28 11:56:19 +08:00
import {defineConfig} from 'vitepress'
2024-08-28 11:38:46 +08:00
2024-08-28 12:02:30 +08:00
import AutoSidebarPlugin from 'vitepress-auto-sidebar-plugin'
2024-08-28 11:38:46 +08:00
export const common = defineConfig({
title: "MBCP docs",
description: "MBCP library docs",
2024-08-28 12:02:30 +08:00
vite: {
plugins: [
AutoSidebarPlugin({
// 如果不指定 `srcDir`,则默认使用 `vitepress` 的 `srcDir`
ignoreList: [
'README.md'
],
title: {
mode: text => text.toLowerCase()
}
}),
],
},
2024-08-28 11:38:46 +08:00
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
socialLinks: [
{icon: 'github', link: 'https://github.com/snowykami/mbcp'}
]
},
srcDir: '.'
})