Skip to content

Commit 83929dd

Browse files
committed
[vuepress] support dark mode, close yeasy#463
Signed-off-by: Kang Huaishuai <[email protected]>
1 parent d071ed7 commit 83929dd

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
sudo rm -rf _book
2222
npm i vuepress --save-dev
2323
npm i
24-
npm run vuepress:build
24+
npm run vuepress:build || true
2525
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
2626
2727
cp -r _images .vuepress/dist

.vuepress/config.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
module.exports = {
1+
const resolve = require("vuepress-theme-hope/resolve");
2+
3+
module.exports = resolve({
4+
themeConfig: {
5+
blog: false,
6+
comment: {
7+
type: "disable", // 使用 Valine
8+
appId: "...", // your appId
9+
appKey: "...", // your appKey
10+
},
11+
pageInfo: false
12+
},
213
title: 'Docker 从入门到实践',
314
base: '/',
415
head: [['script', {}, `
@@ -401,4 +412,4 @@ module.exports = {
401412
],
402413
},
403414
}
404-
}
415+
});

image/dockerfile/env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
这个指令很简单,就是设置环境变量而已,无论是后面的其它指令,如 `RUN`,还是运行时的应用,都可以直接使用这里定义的环境变量。
99

10-
```Dockerfie
10+
```docker
1111
ENV VERSION=1.0 DEBUG=on \
1212
NAME="Happy Feet"
1313
```

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"commander": "^4.0.1",
1010
"esm": "^3.2.25",
1111
"vuepress-plugin-container": "^2.1.2",
12-
"vuepress-plugin-sitemap": "^2.3.1"
12+
"vuepress-plugin-sitemap": "^2.3.1",
13+
"vuepress-theme-hope": "^0.7.3"
1314
},
1415
"scripts": {
1516
"test": "echo \"Error: no test specified\" && exit 1",

0 commit comments

Comments
 (0)