config.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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: 'https://bhuh.net' }
  19. ],
  20. // 侧边栏
  21. sidebar: 'auto',
  22. // Demo路径
  23. demoUrl: demoUrl,
  24. // 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
  25. repo: 'bhuh12/vue-router-tab',
  26. repoLabel: 'GitHub',
  27. // 假如文档放在一个特定的分支下:
  28. docsBranch: 'dev',
  29. lastUpdated: '上次更新',
  30. },
  31. // markdow 配置
  32. markdown: {
  33. lineNumbers: true,
  34. },
  35. plugins: {
  36. '@vuepress/pwa': {
  37. serviceWorker: true,
  38. updatePopup: {
  39. message: '发现新内容可用',
  40. buttonText: '刷新'
  41. }
  42. },
  43. '@vuepress/back-to-top': true
  44. }
  45. }