config.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. const setupContent = require("../setup/index");
  2. const graphContent = require("../guides/index");
  3. module.exports = {
  4. title: "数字化交付开发文档",
  5. description: "上格云数字化交付开发文档",
  6. base: "/doc/web/",
  7. plugins: [
  8. "@vuepress/last-updated",
  9. "plugin-back-to-top",
  10. [
  11. 'vuepress-plugin-typescript',
  12. {
  13. tsLoaderOptions: {},
  14. },
  15. ],
  16. [
  17. 'vuepress-plugin-mathjax',
  18. {
  19. target: 'svg',
  20. macros: {
  21. '*': '\\times',
  22. },
  23. },
  24. ],
  25. ],
  26. markdown: {
  27. lineNumbers: true
  28. },
  29. themeConfig: {
  30. logo: "/assets/img/logo.png",
  31. nav: [{
  32. text: "首页",
  33. link: "/"
  34. },
  35. {
  36. text: "安装配置",
  37. items: [{
  38. text: "开发环境",
  39. items: [{
  40. text: "IDEA",
  41. link: "/setup/ide/idea"
  42. },
  43. {
  44. text: "VS Code",
  45. link: "/setup/ide/vscode"
  46. },
  47. {
  48. text: "Node.js",
  49. link: "/setup/ide/nodejs"
  50. },
  51. ]
  52. },
  53. {
  54. text: "服务器",
  55. items: [{
  56. text: "Nginx",
  57. link: "/setup/server/nginx"
  58. },
  59. {
  60. text: "Tomcat",
  61. link: "/setup/server/tomcat"
  62. }
  63. ]
  64. },
  65. ]
  66. },
  67. {
  68. text: "开发文档",
  69. <<<<<<< HEAD
  70. items: [{
  71. text: "引擎",
  72. items: [{
  73. text: "安装",
  74. link: "/guides/base/"
  75. },
  76. {
  77. text: "图形引擎",
  78. link: "/guides/engine/"
  79. },
  80. {
  81. text: "场景管理",
  82. link: "/guides/scene/"
  83. },
  84. {
  85. text: "楼层平面图",
  86. link: "/guides/big/"
  87. },
  88. {
  89. text: "系统图",
  90. link: "/guides/system-diagram/"
  91. },
  92. {
  93. text: "编辑器",
  94. link: "/guides/edit/"
  95. }
  96. ]
  97. }, ]
  98. =======
  99. items: [
  100. {
  101. text: "引擎",
  102. items: [
  103. {text: "图形引擎", link: "/guides/engine/"},
  104. {text: "场景管理", link: "/guides/scene/"},
  105. {text: "楼层平面图", link: "/guides/big/"},
  106. {text: "系统图", link: "/guides/system-diagram/"},
  107. {text: "编辑器", link: "/guides/edit/"}
  108. ]
  109. },
  110. ]
  111. >>>>>>> a5361b3c73737dafb997d2168184296691e4255f
  112. },
  113. {
  114. text: "API参考",
  115. items: [{
  116. text: "图形引擎",
  117. link: "http://adm.sagacloud.cn:8080/api/web/graph/"
  118. },
  119. {
  120. text: "建筑信息图",
  121. link: "http://adm.sagacloud.cn:8080/api/web/big/"
  122. }
  123. ]
  124. }
  125. ],
  126. displayAllHeaders: true,
  127. sidebarDepth: 0,
  128. sidebar: {
  129. "/setup/": setupContent,
  130. "/guides/": graphContent
  131. }
  132. },
  133. module: {
  134. rules: [{
  135. test: /\.less$/,
  136. loader: 'less-loader', // compiles Less to CSS
  137. }, ],
  138. },
  139. };