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 4, 2020
1 parent df19c1b commit d18c458
Show file tree
Hide file tree
Showing 3 changed files with 2,208 additions and 2,923 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 @@ -48,8 +48,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
Loading

0 comments on commit d18c458

Please sign in to comment.