Skip to content

Commit

Permalink
chore: upgrade vuepress (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 5, 2020
1 parent 66f6f7b commit 982f334
Show file tree
Hide file tree
Showing 4 changed files with 3,105 additions and 2,261 deletions.
27 changes: 19 additions & 8 deletions docs/.vuepress/config.js
@@ -1,4 +1,4 @@
module.exports = {
module.exports = ctx => ({
locales: {
'/': {
lang: 'en-US',
Expand Down Expand Up @@ -53,15 +53,26 @@ module.exports = {
}
]
],
serviceWorker: true,
theme: 'vue',
theme: '@vuepress/vue',
plugins: [
[
'@vuepress/pwa',
{
serviceWorker: true,
updatePopup: true
}
]
],
themeConfig: {
algolia: {
apiKey: 'f854bb46d3de7eeb921a3b9173bd0d4c',
indexName: 'vue-router'
},
algolia: ctx.isProd
? {
apiKey: 'f854bb46d3de7eeb921a3b9173bd0d4c',
indexName: 'vue-router'
}
: null,
repo: 'vuejs/vue-router',
docsDir: 'docs',
smoothScroll: true,
locales: {
'/': {
label: 'English',
Expand Down Expand Up @@ -366,4 +377,4 @@ module.exports = {
}
}
}
}
})
File renamed without changes.
10 changes: 6 additions & 4 deletions package.json
Expand Up @@ -59,6 +59,8 @@
]
},
"devDependencies": {
"@vuepress/plugin-pwa": "^1.5.3",
"@vuepress/theme-vue": "^1.5.3",
"axios": "^0.19.0",
"babel-core": "^6.24.1",
"babel-eslint": "^10.0.2",
Expand Down Expand Up @@ -97,10 +99,10 @@
"selenium-server": "^3.141.59",
"terser": "^4.2.0",
"typescript": "^3.5.2",
"vue": "^2.5.16",
"vue-loader": "^15.2.1",
"vue-template-compiler": "^2.5.16",
"vuepress": "^0.14.11",
"vue": "^2.6.11",
"vue-loader": "^15.9.3",
"vue-template-compiler": "^2.6.11",
"vuepress": "^1.5.3",
"vuepress-theme-vue": "^1.1.1",
"webpack": "^4.35.2",
"webpack-dev-middleware": "^3.7.0",
Expand Down

0 comments on commit 982f334

Please sign in to comment.