更新文档配置以启用从索引文件获取文件夹标题;修改开发脚本以支持主机选项

This commit is contained in:
远野千束(神羽) 2024-12-14 18:43:20 +08:00
parent 1e21f378c4
commit 19aadc3271
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -5,7 +5,7 @@
"vitepress-sidebar": "^1.30.2"
},
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:dev": "vitepress dev docs --host",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},