File tree 4 files changed +3105
-2261
lines changed
4 files changed +3105
-2261
lines changed Original file line number Diff line number Diff line change 1
- module . exports = {
1
+ module . exports = ctx => ( {
2
2
locales : {
3
3
'/' : {
4
4
lang : 'en-US' ,
@@ -53,15 +53,26 @@ module.exports = {
53
53
}
54
54
]
55
55
] ,
56
- serviceWorker : true ,
57
- theme : 'vue' ,
56
+ theme : '@vuepress/vue' ,
57
+ plugins : [
58
+ [
59
+ '@vuepress/pwa' ,
60
+ {
61
+ serviceWorker : true ,
62
+ updatePopup : true
63
+ }
64
+ ]
65
+ ] ,
58
66
themeConfig : {
59
- algolia : {
60
- apiKey : 'f854bb46d3de7eeb921a3b9173bd0d4c' ,
61
- indexName : 'vue-router'
62
- } ,
67
+ algolia : ctx . isProd
68
+ ? {
69
+ apiKey : 'f854bb46d3de7eeb921a3b9173bd0d4c' ,
70
+ indexName : 'vue-router'
71
+ }
72
+ : null ,
63
73
repo : 'vuejs/vue-router' ,
64
74
docsDir : 'docs' ,
75
+ smoothScroll : true ,
65
76
locales : {
66
77
'/' : {
67
78
label : 'English' ,
@@ -366,4 +377,4 @@ module.exports = {
366
377
}
367
378
}
368
379
}
369
- }
380
+ } )
File renamed without changes.
Original file line number Diff line number Diff line change 59
59
]
60
60
},
61
61
"devDependencies" : {
62
+ "@vuepress/plugin-pwa" : " ^1.5.3" ,
63
+ "@vuepress/theme-vue" : " ^1.5.3" ,
62
64
"axios" : " ^0.19.0" ,
63
65
"babel-core" : " ^6.24.1" ,
64
66
"babel-eslint" : " ^10.0.2" ,
97
99
"selenium-server" : " ^3.141.59" ,
98
100
"terser" : " ^4.2.0" ,
99
101
"typescript" : " ^3.5.2" ,
100
- "vue" : " ^2.5.16 " ,
101
- "vue-loader" : " ^15.2.1 " ,
102
- "vue-template-compiler" : " ^2.5.16 " ,
103
- "vuepress" : " ^0.14.11 " ,
102
+ "vue" : " ^2.6.11 " ,
103
+ "vue-loader" : " ^15.9.3 " ,
104
+ "vue-template-compiler" : " ^2.6.11 " ,
105
+ "vuepress" : " ^1.5.3 " ,
104
106
"vuepress-theme-vue" : " ^1.1.1" ,
105
107
"webpack" : " ^4.35.2" ,
106
108
"webpack-dev-middleware" : " ^3.7.0" ,
You can’t perform that action at this time.
0 commit comments