config.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import { viteBundler } from '@vuepress/bundler-vite'
  2. import { defaultTheme } from '@vuepress/theme-default'
  3. import { defineUserConfig } from 'vuepress'
  4. export default defineUserConfig({
  5. bundler: viteBundler(),
  6. theme: defaultTheme(
  7. {
  8. repo: 'DragonOS-Community/community',
  9. repoLabel: 'GitHub',
  10. // 默认是 false, 设置为 true 来启用
  11. editLinks: true,
  12. // 默认为 "Edit this page"
  13. editLinkText: '帮助我们改善此页面!',
  14. smoothScroll: true,
  15. docsBranch: 'master',
  16. logo: '/images/dragonos-full-logo.svg',
  17. nextLinks: true,
  18. navbar: [
  19. {
  20. 'text': '首页',
  21. 'link': '/',
  22. },
  23. {
  24. 'text': '社区治理',
  25. 'link': '/governance/',
  26. },
  27. {
  28. 'text': '交流',
  29. 'link': '/communication/',
  30. },
  31. {
  32. 'text': '贡献者',
  33. 'link': '/contributors/',
  34. },
  35. {
  36. 'text': 'SIGs',
  37. 'link': '/sigs/',
  38. },
  39. {
  40. 'text': '工作组',
  41. 'link': '/wgs/',
  42. },
  43. {
  44. 'text': "导师制",
  45. 'link': '/mentorship/',
  46. }
  47. ],
  48. sidebar: {
  49. '/': 'heading',
  50. '/governance/': [
  51. {
  52. text: '社区治理',
  53. children: [
  54. '/governance/',
  55. '/governance/community-membership.md',
  56. '/governance/dev-group.md',
  57. '/governance/sig-wg-lifecycle.md',
  58. ]
  59. },
  60. {
  61. text:'SIG治理',
  62. children: [
  63. '/governance/sig-governance/',
  64. '/governance/sig-governance/sig-charter-guide.md',
  65. ]
  66. },
  67. {
  68. text:'WG治理',
  69. children: [
  70. '/governance/wg-governance/',
  71. ]
  72. }
  73. ],
  74. '/contributors/': [
  75. {
  76. text: '贡献者指南',
  77. children: [
  78. '/contributors/',
  79. '/contributors/guide.md',
  80. '/contributors/cheat-sheet.md',
  81. '/contributors/code_of_conduct.md',
  82. ]
  83. }
  84. ],
  85. '/sigs/': [
  86. '/sigs/',
  87. {
  88. text: 'SIG 模板',
  89. children: [
  90. '/sigs/sig-template/',
  91. '/sigs/sig-template/charter.md',
  92. '/sigs/sig-template/contributing.md',
  93. ],
  94. },
  95. {
  96. text: 'SIG Network',
  97. children: [
  98. '/sigs/sig-network/',
  99. '/sigs/sig-network/charter.md',
  100. '/sigs/sig-network/contributing.md',
  101. ]
  102. },
  103. ],
  104. '/wgs/': [
  105. {
  106. text: '工作组',
  107. children: [
  108. '/wgs/',
  109. ]
  110. },
  111. {
  112. text: '工作组模版',
  113. children: [
  114. '/wgs/wg-template/',
  115. ]
  116. }
  117. ],
  118. }
  119. }
  120. ),
  121. lang: 'zh-CN',
  122. title: '',
  123. })