diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index d5f22d79..706fbb75 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -20,38 +20,9 @@ export default defineUserConfig({ } }, + // https://v2.vuepress.vuejs.org/zh/guide/theme.html + // https://ecosystem.vuejs.press/zh/themes/default/config.html theme: defaultTheme({ - repo: "Cactus-proj/A-Philosophy-of-Software-Design-zh", - docsRepo: "Cactus-proj/A-Philosophy-of-Software-Design-zh", - docsBranch: "main", - docsDir: "docs", - contributors: false, - sidebarDepth: 2, - sidebar: [ - "preface.md", - "ch01.md", - "ch02.md", - "ch03.md", - "ch04.md", - "ch05.md", - "ch06.md", - "ch07.md", - "ch08.md", - "ch09.md", - "ch10.md", - "ch11.md", - "ch12.md", - "ch13.md", - "ch14.md", - "ch15.md", - "ch16.md", - "ch17.md", - "ch18.md", - "ch19.md", - "ch20.md", - "ch21.md", - "summary.md" - ], locales: { '/': { // zh-CN // 该语言在下拉菜单中的标签 @@ -71,7 +42,16 @@ export default defineUserConfig({ editLinkText: 'Edit this page on GitHub', lastUpdatedText: 'Last Updated', } - } + }, + + repo: "Cactus-proj/A-Philosophy-of-Software-Design-zh", + docsRepo: "Cactus-proj/A-Philosophy-of-Software-Design-zh", + docsBranch: "main", + docsDir: "docs", + contributors: false, + + sidebarDepth: 2, + sidebar: 'auto', }), })