修改文档配置,禁用从索引文件获取文件夹标题;更新图标和 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,
convertSameNameSubFileToGroupIndexPage: true,
useTitleFromFrontmatter: true,
useFolderTitleFromIndexFile: true,
useFolderTitleFromIndexFile: false,
useFolderLinkFromIndexFile: true,
includeFolderIndexFile: true,
rootGroupText: 'MARSHOAI',

View File

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