From ba36c90b6cdb38b4866c25d0694b634e9fe4997e Mon Sep 17 00:00:00 2001 From: Kang Huaishuai Date: Mon, 31 May 2021 19:23:39 +0800 Subject: [PATCH] Update vuepress config Signed-off-by: Kang Huaishuai --- .vuepress/config.js | 21 +++++++++++++++------ package.json | 5 ++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.vuepress/config.js b/.vuepress/config.js index 19a29bd..3910d64 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -39,7 +39,6 @@ module.exports = config({ // }, }, themeConfig: { - baseLang: 'zh-CN', blog: false, // comment: false, comment: { @@ -53,7 +52,7 @@ module.exports = config({ 'word', ], footer: { - content: "Made with vuepress-theme-hope", + content: "Made with vuepress-theme-hope", display: true, copyright: false, }, @@ -65,12 +64,22 @@ module.exports = config({ mdEnhance: { lineNumbers: true, }, + git: { + contributor: false, + }, themeColor: { blue: '#2196f3', // red: '#f26d6d', // green: '#3eaf7c', // orange: '#fb9b5f' }, + locales: { + "/": { + lang: "zh-CN" + } + }, + + darkmode: 'auto-switch', // @@ -117,10 +126,10 @@ module.exports = config({ text: "云计算", link: "/cloud/", }, - { - text: 'GitHub', - link: 'https://github.com/yeasy/docker_practice' - }, + // { + // text: 'GitHub', + // link: 'https://github.com/yeasy/docker_practice' + // }, // { // text: '捐赠', // link: '' diff --git a/package.json b/package.json index e7d5fb0..a35560b 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,9 @@ "version": "1.0.0", "description": "docker_practice", "main": "index.js", - "dependencies": {}, "devDependencies": { - "chalk": "^2.4.2", - "commander": "^2.0.0", + "chalk": "^4.1.1", + "commander": "^7.2.0", "esm": "^3.0.0", "vuepress": "1.8.2", "vuepress-plugin-container": "^2.1.5",