config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const demoUrl = 'https://bhuh12.github.io/vue-router-tab/demo/'
  2. module.exports = {
  3. title: 'Vue Router Tab',
  4. description: '基于 Vue Router 的路由页签组件',
  5. // 基础路径
  6. base: '/vue-router-tab/',
  7. // 输出目录
  8. dest: 'dist/docs',
  9. // 主题配置
  10. themeConfig: {
  11. // 页头
  12. displayAllHeaders: true,
  13. // 页头导航
  14. nav: [
  15. { text: '教程', link: '/guide.html' },
  16. { text: 'API', link: '/api.html' },
  17. { text: 'Demo', link: demoUrl },
  18. { text: '反馈', link: 'mailto: bihaiyouhong12@126.com?subject=' + encodeURIComponent('vue-router-tab 问题和建议') },
  19. { text: '主页', link: 'https://bhuh.net' }
  20. ],
  21. // 侧边栏
  22. sidebar: 'auto',
  23. // Demo路径
  24. demoUrl: demoUrl,
  25. // 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
  26. repo: 'bhuh12/vue-router-tab',
  27. repoLabel: 'GitHub',
  28. // 假如文档放在一个特定的分支下:
  29. docsBranch: 'dev',
  30. lastUpdated: '上次更新',
  31. },
  32. // markdow 配置
  33. markdown: {
  34. lineNumbers: true,
  35. },
  36. plugins: {
  37. '@vuepress/pwa': {
  38. serviceWorker: true,
  39. updatePopup: {
  40. message: '发现新内容可用',
  41. buttonText: '刷新'
  42. }
  43. },
  44. '@vuepress/back-to-top': true
  45. }
  46. }