config.js 6.9 KB

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