修改文档配置,禁用从索引文件获取文件夹标题;更新图标和 logo 路径

This commit is contained in:
远野千束(神羽) 2024-12-14 18:47:16 +08:00
parent 19aadc3271
commit 8c06f1336e
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ const commonSidebarOptions = {
collapsed: true, collapsed: true,
convertSameNameSubFileToGroupIndexPage: true, convertSameNameSubFileToGroupIndexPage: true,
useTitleFromFrontmatter: true, useTitleFromFrontmatter: true,
useFolderTitleFromIndexFile: true, useFolderTitleFromIndexFile: false,
useFolderLinkFromIndexFile: true, useFolderLinkFromIndexFile: true,
includeFolderIndexFile: true, includeFolderIndexFile: true,
rootGroupText: 'MARSHOAI', rootGroupText: 'MARSHOAI',

View File

@ -7,7 +7,7 @@ import { generateSidebar } from 'vitepress-sidebar'
// https://vitepress.dev/reference/site-config // https://vitepress.dev/reference/site-config
export default defineConfig({ export default defineConfig({
head: [ head: [
['link', { rel: 'icon', type: 'image/x-icon', href: './favicon.ico' }], ['link', { rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' }],
], ],
rewrites: { rewrites: {
[`${defaultLang}/:rest*`]: ":rest*", [`${defaultLang}/:rest*`]: ":rest*",
@ -16,8 +16,8 @@ export default defineConfig({
themeConfig: { themeConfig: {
// https://vitepress.dev/reference/default-theme-config // https://vitepress.dev/reference/default-theme-config
logo: { logo: {
light: './marsho-full.svg', light: 'marsho-full.svg',
dark: './marsho-full.svg', dark: 'marsho-full.svg',
alt: 'Marsho Logo' alt: 'Marsho Logo'
}, },