Skip to content

Commit ba36c90

Browse files
committed
Update vuepress config
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
1 parent 96fc5ac commit ba36c90

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.vuepress/config.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ module.exports = config({
3939
// },
4040
},
4141
themeConfig: {
42-
baseLang: 'zh-CN',
4342
blog: false,
4443
// comment: false,
4544
comment: {
@@ -53,7 +52,7 @@ module.exports = config({
5352
'word',
5453
],
5554
footer: {
56-
content: "Made with <a target='_blank' href='https://github.com/mister-hope/vuepress-theme-hope'>vuepress-theme-hope</a>",
55+
content: "Made with <a target='_blank' href='https://github.com/vuepress-theme-hope/vuepress-theme-hope'>vuepress-theme-hope</a>",
5756
display: true,
5857
copyright: false,
5958
},
@@ -65,12 +64,22 @@ module.exports = config({
6564
mdEnhance: {
6665
lineNumbers: true,
6766
},
67+
git: {
68+
contributor: false,
69+
},
6870
themeColor: {
6971
blue: '#2196f3',
7072
// red: '#f26d6d',
7173
// green: '#3eaf7c',
7274
// orange: '#fb9b5f'
7375
},
76+
locales: {
77+
"/": {
78+
lang: "zh-CN"
79+
}
80+
},
81+
82+
darkmode: 'auto-switch',
7483

7584
//
7685

@@ -117,10 +126,10 @@ module.exports = config({
117126
text: "云计算",
118127
link: "/cloud/",
119128
},
120-
{
121-
text: 'GitHub',
122-
link: 'https://github.com/yeasy/docker_practice'
123-
},
129+
// {
130+
// text: 'GitHub',
131+
// link: 'https://github.com/yeasy/docker_practice'
132+
// },
124133
// {
125134
// text: '捐赠',
126135
// link: ''

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"version": "1.0.0",
44
"description": "docker_practice",
55
"main": "index.js",
6-
"dependencies": {},
76
"devDependencies": {
8-
"chalk": "^2.4.2",
9-
"commander": "^2.0.0",
7+
"chalk": "^4.1.1",
8+
"commander": "^7.2.0",
109
"esm": "^3.0.0",
1110
"vuepress": "1.8.2",
1211
"vuepress-plugin-container": "^2.1.5",

0 commit comments

Comments
 (0)