Skip to content

Commit

Permalink
site: fix sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed May 19, 2024
1 parent 5453f04 commit 46bfe8c
Showing 1 changed file with 12 additions and 32 deletions.
44 changes: 12 additions & 32 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 该语言在下拉菜单中的标签
Expand All @@ -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',
}),

})

0 comments on commit 46bfe8c

Please sign in to comment.