config.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. displayAllHeaders: true,
  16. // 页头导航
  17. nav: [
  18. { text: '教程', link: '/guide.html' },
  19. { text: 'API', link: '/api.html' },
  20. { text: 'Demo', link: demoUrl },
  21. { text: '更新日志', link: 'https://github.com/bhuh12/vue-router-tab/releases' },
  22. { text: '主页', link: 'https://bhuh.net' }
  23. ],
  24. // 侧边栏
  25. sidebar: 'auto',
  26. // Demo路径
  27. demoUrl: demoUrl,
  28. // 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
  29. repo: 'bhuh12/vue-router-tab',
  30. repoLabel: 'GitHub',
  31. // 假如文档放在一个特定的分支下:
  32. docsBranch: 'dev',
  33. lastUpdated: '上次更新',
  34. },
  35. // markdow 配置
  36. markdown: {
  37. lineNumbers: true,
  38. },
  39. plugins: {
  40. '@vuepress/pwa': {
  41. serviceWorker: true,
  42. updatePopup: {
  43. message: '发现新内容可用',
  44. buttonText: '刷新'
  45. }
  46. },
  47. '@vuepress/back-to-top': true
  48. }
  49. }