Skip to content

Commit

Permalink
site: Update config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed May 19, 2024
1 parent 724667f commit 982f68d
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,75 @@ import { viteBundler } from '@vuepress/bundler-vite'
import { defaultTheme } from '@vuepress/theme-default'
import { defineUserConfig } from 'vuepress'

// https://v2.vuepress.vuejs.org/zh/reference/config.html
export default defineUserConfig({
bundler: viteBundler(),

base: "/A-Philosophy-of-Software-Design-zh/",
locales: {
'/': {
lang: 'zh-CN',
title: "《软件设计的哲学》中文翻译",
},
'/en/': {
lang: 'en-US',
title: '<A Philosophy of Software Design>',
}
},

theme: defaultTheme(),
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',
}
}
}

})

0 comments on commit 982f68d

Please sign in to comment.