Skip to content

Commit ee2140d

Browse files
committed
improvement(vuepress): upgrade VuePress to version 1.x
Upgrade vuepress docs server to 1.x to gain recent features and bugfixes
1 parent 60c1bce commit ee2140d

File tree

3 files changed

+2258
-2940
lines changed

3 files changed

+2258
-2940
lines changed

Diff for: docs/.vuepress/config.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ module.exports = {
2121
description: 'Библиотека для тестирования Vue-компонентов'
2222
}
2323
},
24-
serviceWorker: true,
24+
plugins: ['@vuepress/pwa'],
2525
head: [
2626
['link', { rel: 'icon', href: '/favicon.png' }],
2727
['link', { rel: 'stylesheet', href: '/vueschool.css' }]
2828
],
29-
theme: 'vue',
29+
theme: '@vuepress/vue',
3030
themeConfig: {
3131
algolia: {
3232
apiKey: 'ee1b8516c9e5a5be9b6c25684eafc42f',
@@ -143,10 +143,8 @@ module.exports = {
143143
}
144144
}
145145
},
146-
markdown: {
147-
config: md => {
148-
// use more markdown-it plugins!
149-
md.use(require('markdown-it-include'))
150-
}
146+
extendMarkdown: md => {
147+
// use more markdown-it plugins!
148+
md.use(require('markdown-it-include'))
151149
}
152150
}

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
"vue-router": "^3.0.1",
5252
"vue-server-renderer": "^2.6.11",
5353
"vue-template-compiler": "^2.6.11",
54-
"vuepress": "^0.14.8",
55-
"vuepress-theme-vue": "^1.0.3",
54+
"vuepress": "^1.5.2",
55+
"@vuepress/theme-vue": "^1.5.2",
56+
"@vuepress/plugin-pwa": "^1.5.2",
5657
"vuex": "^3.0.1"
5758
},
5859
"devDependencies": {

0 commit comments

Comments
 (0)