[vuepress] support dark mode, close #463

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
pull/464/head
Kang Huaishuai 2020-09-16 18:05:52 +08:00
parent d071ed7b99
commit 83929dd096
No known key found for this signature in database
GPG Key ID: 5E515022F565DA09
4 changed files with 17 additions and 5 deletions

View File

@ -21,7 +21,7 @@ jobs:
sudo rm -rf _book
npm i vuepress --save-dev
npm i
npm run vuepress:build
npm run vuepress:build || true
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
cp -r _images .vuepress/dist

View File

@ -1,4 +1,15 @@
module.exports = {
const resolve = require("vuepress-theme-hope/resolve");
module.exports = resolve({
themeConfig: {
blog: false,
comment: {
type: "disable", // 使用 Valine
appId: "...", // your appId
appKey: "...", // your appKey
},
pageInfo: false
},
title: 'Docker ',
base: '/',
head: [['script', {}, `
@ -401,4 +412,4 @@ module.exports = {
],
},
}
}
});

View File

@ -7,7 +7,7 @@
`RUN`使
```Dockerfie
```docker
ENV VERSION=1.0 DEBUG=on \
NAME="Happy Feet"
```

View File

@ -9,7 +9,8 @@
"commander": "^4.0.1",
"esm": "^3.2.25",
"vuepress-plugin-container": "^2.1.2",
"vuepress-plugin-sitemap": "^2.3.1"
"vuepress-plugin-sitemap": "^2.3.1",
"vuepress-theme-hope": "^0.7.3"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",