|
| 1 | +const { description } = require('../../package') |
| 2 | + |
| 3 | +const getConfig = require("vuepress-bar"); |
| 4 | +const path = require('path') |
| 5 | +const {nav,sidebar} = getConfig(path.resolve(__dirname,'..')); |
| 6 | + |
| 7 | +module.exports = { |
| 8 | + /** |
| 9 | + * Ref:https://v1.vuepress.vuejs.org/config/#title |
| 10 | + */ |
| 11 | + title: 'Vuepress Docs Boilerplate', |
| 12 | + /** |
| 13 | + * Ref:https://v1.vuepress.vuejs.org/config/#description |
| 14 | + */ |
| 15 | + description: description, |
| 16 | + |
| 17 | + /** |
| 18 | + * Extra tags to be injected to the page HTML `<head>` |
| 19 | + * |
| 20 | + * ref:https://v1.vuepress.vuejs.org/config/#head |
| 21 | + */ |
| 22 | + head: [ |
| 23 | + ['meta', { name: 'theme-color', content: '#3eaf7c' }], |
| 24 | + ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }], |
| 25 | + ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }] |
| 26 | + ], |
| 27 | + |
| 28 | + /** |
| 29 | + * Theme configuration, here is the default theme configuration for VuePress. |
| 30 | + * |
| 31 | + * ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html |
| 32 | + */ |
| 33 | + themeConfig: { |
| 34 | + repo: '', |
| 35 | + editLinks: false, |
| 36 | + docsDir: '', |
| 37 | + editLinkText: '', |
| 38 | + lastUpdated: false, |
| 39 | + sidebarDepth: 6, |
| 40 | + sidebar,nav, |
| 41 | + nav: [ { text: 'Guide', link: '/guide/', }, |
| 42 | + { text: 'Config', link: '/config/' }, |
| 43 | + {text: 'Code', link: '/code/'}, |
| 44 | + { text: 'VuePress', link: 'https://v1.vuepress.vuejs.org' } |
| 45 | + ], |
| 46 | + |
| 47 | + }, |
| 48 | + |
| 49 | + /** |
| 50 | + * Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/ |
| 51 | + */ |
| 52 | + plugins: [ |
| 53 | + '@vuepress/plugin-back-to-top', |
| 54 | + '@vuepress/plugin-medium-zoom', |
| 55 | + ] |
| 56 | +} |
0 commit comments