Skip to content

Commit

Permalink
improvement(vuepress): upgrade VuePress to version 1.x
Browse files Browse the repository at this point in the history
Upgrade vuepress docs server to 1.x to gain recent features and bugfixes
  • Loading branch information
AtofStryker committed Aug 16, 2020
1 parent 60c1bce commit ee2140d
Show file tree
Hide file tree
Showing 3 changed files with 2,258 additions and 2,940 deletions.
12 changes: 5 additions & 7 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ module.exports = {
description: 'Библиотека для тестирования Vue-компонентов'
}
},
serviceWorker: true,
plugins: ['@vuepress/pwa'],
head: [
['link', { rel: 'icon', href: '/favicon.png' }],
['link', { rel: 'stylesheet', href: '/vueschool.css' }]
],
theme: 'vue',
theme: '@vuepress/vue',
themeConfig: {
algolia: {
apiKey: 'ee1b8516c9e5a5be9b6c25684eafc42f',
Expand Down Expand Up @@ -143,10 +143,8 @@ module.exports = {
}
}
},
markdown: {
config: md => {
// use more markdown-it plugins!
md.use(require('markdown-it-include'))
}
extendMarkdown: md => {
// use more markdown-it plugins!
md.use(require('markdown-it-include'))
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
"vue-router": "^3.0.1",
"vue-server-renderer": "^2.6.11",
"vue-template-compiler": "^2.6.11",
"vuepress": "^0.14.8",
"vuepress-theme-vue": "^1.0.3",
"vuepress": "^1.5.2",
"@vuepress/theme-vue": "^1.5.2",
"@vuepress/plugin-pwa": "^1.5.2",
"vuex": "^3.0.1"
},
"devDependencies": {
Expand Down

0 comments on commit ee2140d

Please sign in to comment.