实现切换侧边栏导航之前

This commit is contained in:
2025-08-04 13:43:54 +08:00
parent 817d184fe1
commit 631f3077f9
30 changed files with 439 additions and 47 deletions

View File

@@ -3,21 +3,19 @@ import { set_sidebar } from "../utils/auto_sidebar.js";
// https://vitepress.dev/reference/site-config
export default defineConfig({
markdown: {
vue: {
compilerOptions: {
isCustomElement: () => true // 禁止解析 ${{ }}
}
}
} as any,
title: "devstar",
head: [['link', { rel: 'icon', href: '/devstar-logo.png' }]],
description: "A VitePress Site",
title: "梦宁软件",
head: [
['link', { rel: 'stylesheet', href: '/theme/style.css' }], // 引入CSS
['link', { rel: 'icon', href: '/mengninglogo.png' }] // 设置favicon
],
description: "梦宁软件",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
outlineTitle: '目录',
outline: [2, 6],
logo: '/devstar-logo.png',
logo: {
src: '/mnsoftware.png',
},
nav: [
{ text: '文档', link: '/document/index' },
{ text: 'API', link: 'https://docs.gitea.com/zh-cn/api/1.24/' },
@@ -28,7 +26,6 @@ export default defineConfig({
{
text: 'devstar是什么',
link: '/document/index',
attrs: { class: 'bold-item' }
} as any,
{
text: '安装',
@@ -163,6 +160,7 @@ export default defineConfig({
]
} as any,
{
text: '贡献',
collapsible: true, // 使整个组可折叠
collapsed: true, // 默认展开
items: [