config.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. '/communication/': [
  75. {
  76. text: '社区交流',
  77. children: [
  78. '/communication/',
  79. '/communication/dragonos-community-conference.md',
  80. ]
  81. }
  82. ],
  83. '/contributors/': [
  84. {
  85. text: '贡献者指南',
  86. children: [
  87. '/contributors/',
  88. '/contributors/code-style.md',
  89. '/contributors/github-workflow.md',
  90. '/contributors/pull-requests.md',
  91. '/contributors/cheat-sheet.md',
  92. '/contributors/code_of_conduct.md',
  93. '/contributors/expectation.md',
  94. ]
  95. }
  96. ],
  97. '/sigs/': [
  98. '/sigs/',
  99. {
  100. text: 'SIGs',
  101. children: [
  102. '/sigs/',
  103. '/sigs/sig-list.md',
  104. ]
  105. },
  106. {
  107. text: 'SIG模版',
  108. children: [
  109. '/sigs/sig-template/',
  110. '/sigs/sig-template/charter.md',
  111. '/sigs/sig-template/contributing.md',
  112. ],
  113. },
  114. {
  115. text: 'SIG Main',
  116. children: [
  117. '/sigs/sig-main/',
  118. '/sigs/sig-main/charter.md',
  119. '/sigs/sig-main/contributing.md',
  120. ]
  121. },
  122. {
  123. text: 'SIG Cloud Provider',
  124. children: [
  125. '/sigs/sig-cloud-provider/',
  126. '/sigs/sig-cloud-provider/charter.md',
  127. '/sigs/sig-cloud-provider/contributing.md',
  128. ]
  129. },
  130. {
  131. text: 'SIG Network',
  132. children: [
  133. '/sigs/sig-network/',
  134. '/sigs/sig-network/charter.md',
  135. '/sigs/sig-network/contributing.md',
  136. ]
  137. },
  138. ],
  139. '/wgs/': [
  140. {
  141. text: '工作组',
  142. children: [
  143. '/wgs/',
  144. '/wgs/wg-list.md',
  145. ]
  146. },
  147. {
  148. text: '工作组模版',
  149. children: [
  150. '/wgs/wg-template/',
  151. ]
  152. }
  153. ],
  154. '/mentorship/': [
  155. {
  156. text: '导师制',
  157. children: [
  158. '/mentorship/',
  159. '/mentorship/mentee-guide.md',
  160. '/mentorship/mentor-guide.md',
  161. ]
  162. },
  163. {
  164. text: '指导计划',
  165. children: [
  166. '/mentorship/programs/educational-learning-courses.md',
  167. '/mentorship/programs/project-based-mentorship.md',
  168. '/mentorship/programs/ospp.md',
  169. ]
  170. }
  171. ],
  172. }
  173. }
  174. ),
  175. lang: 'zh-CN',
  176. title: '',
  177. })