2025-01-01 15:49:01 +08:00
|
|
|
|
import { defineConfig } from 'vitepress';
|
|
|
|
|
import { generateSidebar } from "vitepress-sidebar";
|
|
|
|
|
|
|
|
|
|
const vitepressSidebarOptions = {
|
|
|
|
|
documentRootPath: "/docs/src",
|
|
|
|
|
collapsed: false, //折叠组关闭
|
|
|
|
|
collapseDepth: 2, //折叠组2级菜单
|
|
|
|
|
removePrefixAfterOrdering: true, //删除前缀,必须与prefixSeparator一起使用
|
|
|
|
|
prefixSeparator: "_", //删除前缀的符号
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
lastUpdated: true,
|
|
|
|
|
lang: 'zh-CN',
|
|
|
|
|
title: "杂乱的收获",
|
|
|
|
|
description: "杂乱的收获,不想失去",
|
|
|
|
|
srcDir: './src',
|
|
|
|
|
themeConfig: {
|
2025-01-01 17:24:22 +08:00
|
|
|
|
logo: '/favicon.ico',
|
|
|
|
|
footer: {
|
|
|
|
|
message: 'Released under the <a href="https://git.mei.lv/mei/kb/src/branch/main/LICENSE">CC-BY-NC-SA-4.0</a> License.',
|
|
|
|
|
copyright: 'Copyright © 2009-2025 <a href="https://github.com/ssdomei232">mei</a>'
|
|
|
|
|
},
|
2025-01-01 15:49:01 +08:00
|
|
|
|
editLink: {
|
2025-01-01 17:24:22 +08:00
|
|
|
|
pattern: 'https://git.mei.lv/mei/kb/_edit/main/docs/src/:path'
|
2025-01-01 15:49:01 +08:00
|
|
|
|
},
|
|
|
|
|
search: {
|
|
|
|
|
provider: 'local'
|
|
|
|
|
},
|
|
|
|
|
sidebar: generateSidebar(vitepressSidebarOptions),
|
|
|
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
|
|
|
nav: [
|
2025-01-01 17:24:22 +08:00
|
|
|
|
{ text: '首页', link: '/' },
|
|
|
|
|
{ text: '关于', link: '/01_about' }
|
2025-01-01 15:49:01 +08:00
|
|
|
|
],
|
|
|
|
|
socialLinks: [
|
2025-01-01 17:24:22 +08:00
|
|
|
|
{ icon: 'gitea', link: 'https://git.mei.lv/mei/kb' }
|
2025-01-01 15:49:01 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|