-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7085a3a
commit 724667f
Showing
3 changed files
with
19 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# vuepress@next | ||
node_modules/ | ||
.temp | ||
.cache | ||
# vuepress@v1 | ||
docs/.vuepress/dist/ | ||
|
||
# vuepress@v2 | ||
# VuePress 默认临时文件目录 | ||
docs/.vuepress/.temp | ||
# VuePress 默认缓存目录 | ||
docs/.vuepress/.cache | ||
# VuePress 默认构建生成的静态文件目录 | ||
docs/.vuepress/dist | ||
|
||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,8 @@ | ||
// https://v2.vuepress.vuejs.org/zh/reference/default-theme/config.html | ||
module.exports = { | ||
base: "/A-Philosophy-of-Software-Design-zh/", | ||
locales: { | ||
'/': { | ||
lang: 'zh-CN', | ||
title: "《软件设计的哲学》中文翻译", | ||
}, | ||
'/en/': { | ||
lang: 'en-US', | ||
title: '<A Philosophy of Software Design>', | ||
} | ||
}, | ||
themeConfig: { | ||
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 | ||
// 该语言在下拉菜单中的标签 | ||
selectLanguageName: '简体中文', | ||
// 多语言下拉菜单的标题 | ||
selectLanguageText: '选择语言', | ||
selectLanguageAriaselectLanguageName: '选择语言', | ||
editLink: true, | ||
editLinkText: '在 GitHub 上编辑此页', | ||
lastUpdatedText: '上次更新', | ||
}, | ||
'/en/': { | ||
selectLanguageName: 'English', | ||
selectLanguageText: 'Languages', | ||
selectLanguageAriaselectLanguageName: 'Select language', | ||
editLink: false, | ||
editLinkText: 'Edit this page on GitHub', | ||
lastUpdatedText: 'Last Updated', | ||
} | ||
} | ||
} | ||
}; | ||
import { viteBundler } from '@vuepress/bundler-vite' | ||
import { defaultTheme } from '@vuepress/theme-default' | ||
import { defineUserConfig } from 'vuepress' | ||
|
||
export default defineUserConfig({ | ||
bundler: viteBundler(), | ||
theme: defaultTheme(), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters