config.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. const demoUrl = 'https://bhuh12.github.io/vue-router-tab/demo/'
  2. module.exports = {
  3. title: 'Vue Router Tab',
  4. description: '基于 Vue Router 的路由页签组件',
  5. head: [
  6. ['link', { rel: 'icon', href: 'https://bhuh12.github.io/vue-router-tab/demo/img/logo.png' }]
  7. ],
  8. // 基础路径
  9. base: '/vue-router-tab/',
  10. // 输出目录
  11. dest: 'dist/docs',
  12. // 主题配置
  13. themeConfig: {
  14. // 页头导航
  15. nav: [
  16. { text: '教程', link: '/guide/' },
  17. { text: 'API', link: '/api/' },
  18. { text: 'Demo', link: demoUrl },
  19. { text: '更新日志', link: 'https://github.com/bhuh12/vue-router-tab/releases' },
  20. { text: '主页', link: 'https://bhuh.net' }
  21. ],
  22. // 侧边栏显示所有子集菜单 (默认显示活动)
  23. // displayAllHeaders: true,
  24. // 侧边栏
  25. sidebar: {
  26. '/guide/': [
  27. '',
  28. 'installation',
  29. {
  30. title: '基础',
  31. collapsable: false,
  32. children: [
  33. 'essentials/',
  34. 'essentials/operate',
  35. 'essentials/iframe',
  36. 'essentials/rule',
  37. 'essentials/i18n'
  38. ]
  39. },
  40. {
  41. title: '进阶',
  42. collapsable: false,
  43. children: [
  44. 'advanced/transition',
  45. 'advanced/slot',
  46. 'advanced/initial-tabs',
  47. 'advanced/dynamic-tab-info',
  48. 'advanced/page-leave'
  49. ]
  50. }
  51. ]
  52. },
  53. // Demo路径
  54. demoUrl: demoUrl,
  55. // 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
  56. repo: 'bhuh12/vue-router-tab',
  57. repoLabel: 'GitHub',
  58. // 假如文档放在一个特定的分支下:
  59. docsBranch: 'dev',
  60. lastUpdated: '上次更新',
  61. // Algolia 搜索
  62. algolia: {
  63. apiKey: 'fdd2c011c382dd55036237094d62bd9e',
  64. indexName: 'vue-router-tab'
  65. }
  66. },
  67. // markdow 配置
  68. markdown: {
  69. lineNumbers: true,
  70. },
  71. plugins: {
  72. '@vuepress/pwa': {
  73. serviceWorker: true,
  74. updatePopup: {
  75. message: '发现新内容可用',
  76. buttonText: '刷新'
  77. }
  78. },
  79. '@vuepress/back-to-top': true
  80. }
  81. }