File tree 5 files changed +63
-22
lines changed 5 files changed +63
-22
lines changed Original file line number Diff line number Diff line change 21
21
sudo rm -rf _book
22
22
npm i vuepress --save-dev
23
23
npm i
24
- npm run vuepress:build || true
24
+
25
+ git clone https://github.com/docker-practice/.vuepress .vuepress2
26
+ cp -r .vuepress2/. .vuepress/
27
+ rm -rf .vuepress2
28
+ find . \( -path "./mesos" -o -path "./machine" -o -path "./swarm_mode" -o -path "./node_modules" -o -path "./.vuepress" -o -path "./_book" -o -path "./CHANGELOG.md" -o -path "./CONTRIBUTING.md" \) -prune -o -name "*.md" -exec sed -i 'N;2a\<AdSenseTitle/>\n' {} \;
29
+
30
+ npm run vuepress:build
25
31
echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
26
32
27
33
cp -r _images .vuepress/dist
39
45
cp -r mesos/_images .vuepress/dist/mesos
40
46
cp -r underly/_images .vuepress/dist/underly
41
47
42
- echo "include: [_images]" > .vuepress/dist/_config
48
+ echo "include: [_images]" > .vuepress/dist/_config.yml
43
49
- name : Upload Vuepress dist
44
50
uses : docker://pcit/pages
45
51
if : github.repository == 'docker-practice/docker_practice'
Original file line number Diff line number Diff line change 9
9
10
10
node_modules /
11
11
package-lock.json
12
-
13
- .vuepress /dist
Original file line number Diff line number Diff line change
1
+ /*
2
+ ! .gitignore
3
+ ! config.js
Original file line number Diff line number Diff line change 1
1
const resolve = require ( "vuepress-theme-hope/resolve" ) ;
2
2
3
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
- } ,
13
4
title : 'Docker 从入门到实践' ,
14
5
base : '/' ,
15
6
head : [ [ 'script' , { } , `
@@ -39,13 +30,57 @@ module.exports = resolve({
39
30
]
40
31
] ,
41
32
plugins : {
42
- sitemap : {
43
- hostname : 'https://vuepress.mirror.docker-practice.com'
44
- } ,
33
+ // sitemap: {
34
+ // hostname: 'https://vuepress.mirror.docker-practice.com'
35
+ // },
36
+ // 'git-log': {
37
+ // additionalArgs: '--no-merge',
38
+ // onlyFirstAndLastCommit: true,
39
+ // },
45
40
} ,
46
41
themeConfig : {
42
+ blog : false ,
43
+ // comment: false,
44
+ comment : {
45
+ type : "disable" , // 使用 Valine
46
+ appId : "..." , // your appId
47
+ appKey : "..." , // your appKey
48
+ } ,
49
+ pageInfo : [
50
+ // 'Author',
51
+ 'ReadTime' ,
52
+ 'Word' ,
53
+ ] ,
54
+ footer : {
55
+ content : "" ,
56
+ display : true ,
57
+ copyright : false ,
58
+ } ,
59
+ searchPlaceholder : 'Search' ,
60
+ repo : 'yeasy/docker_practice' ,
61
+ repoLabel : 'GitHub' ,
62
+ hostname : 'https://vuepress.mirror.docker-practice.com' ,
63
+ // author: 'yeasy',
64
+ markdown : {
65
+ // lineNumbers: true,
66
+ // sub: true,
67
+ // footnote: true
68
+ enableAll : true
69
+ } ,
70
+ themeColor : {
71
+ blue : '#2196f3' ,
72
+ red : '#f26d6d' ,
73
+ green : '#3eaf7c' ,
74
+ orange : '#fb9b5f'
75
+ } ,
76
+
77
+ //
78
+
79
+ showAds : true ,
80
+
47
81
docsRepo : 'yeasy/docker_practice' ,
48
82
docsDir : '/' ,
83
+ docsBranch : 'master' ,
49
84
editLinks : true ,
50
85
nav : [
51
86
{
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"dependencies" : {},
7
7
"devDependencies" : {
8
- "chalk" : " ^3.0.0" ,
9
- "commander" : " ^4.0.1" ,
10
- "esm" : " ^3.2.25" ,
11
- "vuepress-plugin-container" : " ^2.1.2" ,
12
- "vuepress-plugin-sitemap" : " ^2.3.1" ,
13
- "vuepress-theme-hope" : " ^0.7.3"
8
+ "chalk" : " ^2.4.2" ,
9
+ "commander" : " ^2.0.0" ,
10
+ "esm" : " ^3.0.0" ,
11
+ "vuepress-plugin-container" : " ^2.1.5" ,
12
+ "vuepress-theme-hope" : " ^0.8.0"
14
13
},
15
14
"scripts" : {
16
15
"test" : " echo \" Error: no test specified\" && exit 1" ,
You can’t perform that action at this time.
0 commit comments