mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-25 15:55:03 +08:00
28 lines
776 B
TypeScript
28 lines
776 B
TypeScript
import {defineConfig} from 'vitepress'
|
|
|
|
import AutoSidebarPlugin from 'vitepress-auto-sidebar-plugin'
|
|
|
|
export const common = defineConfig({
|
|
title: "MBCP docs",
|
|
description: "MBCP library docs",
|
|
vite: {
|
|
plugins: [
|
|
AutoSidebarPlugin({
|
|
// 如果不指定 `srcDir`,则默认使用 `vitepress` 的 `srcDir`
|
|
ignoreList: [
|
|
'README.md'
|
|
],
|
|
title: {
|
|
mode: text => text.toLowerCase()
|
|
}
|
|
}),
|
|
],
|
|
},
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
socialLinks: [
|
|
{icon: 'github', link: 'https://github.com/snowykami/mbcp'}
|
|
]
|
|
},
|
|
srcDir: '.'
|
|
}) |