config.js 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. const setupDevContent = require("../setup/dev/index");
  2. const setupServerContent = require("../setup/server/index");
  3. const revitContent = require("../revit/index");
  4. const databaseContent = require("../dev/database/index");
  5. const dataCenterContent = require("../dev/data-center/index");
  6. const paasContent = require("../dev/paas/index");
  7. const revitCenterContent = require("../dev/revit-center/index");
  8. const dataCenterScheme = require("../dev/data-center-scheme/index");
  9. const libContent = require("../dev/lib/index");
  10. module.exports = {
  11. title: "数字化交付后台开发文档",
  12. description: "博锐尚格数字化交付后台开发文档",
  13. base: "/service/",
  14. plugins: [
  15. "@vuepress/last-updated",
  16. "plugin-back-to-top",
  17. [
  18. 'vuepress-plugin-typescript',
  19. {
  20. tsLoaderOptions: {
  21. },
  22. },
  23. ],
  24. [
  25. 'vuepress-plugin-mathjax',
  26. {
  27. target: 'svg',
  28. macros: {
  29. '*': '\\times',
  30. },
  31. },
  32. ],
  33. ],
  34. markdown: {
  35. lineNumbers: true
  36. },
  37. themeConfig: {
  38. logo: "/assets/img/logo.png",
  39. nav: [
  40. {text: "首页", link: "/"},
  41. {
  42. text: "安装配置",
  43. items: [
  44. {
  45. text: "服务器配置",
  46. items: [
  47. {text: "CentoOS 部署", link: "/setup/server/centos/"},
  48. {text: "Windows 部署", link: "/setup/server/windows/"}
  49. ]
  50. },
  51. {
  52. text: "开发环境",
  53. items: [
  54. {text: "IDEA", link: "/setup/dev/idea"},
  55. {text: "Revit", link: "/setup/dev/revit"},
  56. {text: "Visual Studio", link: "/setup/dev/vsts"}
  57. ]
  58. }
  59. ]
  60. },
  61. {
  62. text: "开发文档",
  63. items: [
  64. {
  65. text: "后台开发",
  66. items: [
  67. {text: "数据中心", link: "/dev/data-center/"},
  68. {text: "物理世界同步", link: "/dev/dataplatform-sync/"},
  69. {text: "模型管理", link: "/dev/revit-center/"},
  70. {text: "数据中台参考", link: "/dev/paas/"},
  71. {text: "服务支持库", link: "/dev/lib/"}
  72. ]
  73. },
  74. {
  75. text: "移动端开发",
  76. items: [
  77. { text: "Android 图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
  78. ]
  79. },
  80. {
  81. text: "数据库设计",
  82. items: [
  83. { text: "数据中心", link: "/dev/database/data-center/" },
  84. { text: "系统图", link: "/dev/database/topo/" },
  85. { text: "蜡笔森林", link: "/dev/database/labsl/" }
  86. ]
  87. },
  88. {
  89. text: "新版数据字典物理世界对接",
  90. items: [
  91. { text: "新版字典中台工具接口对接", link: "/dev/data-center-scheme/" },
  92. // { text: "新版字典ADM对接", link: "/dev/data-center-scheme/" },
  93. // { text: "新版字典对接数据中心", link: "/dev/data-center-scheme/" },
  94. // { text: "新版物理世界对接数据中心", link: "/dev/data-center-scheme/" }
  95. ]
  96. },
  97. ]
  98. },
  99. {
  100. text: "新兵手册",
  101. items: [
  102. {
  103. text: "微服务",
  104. items: [
  105. {
  106. text: "eureka服务器搭建",
  107. items: [
  108. {text: "CentoOS 部署", link: "/setup/server/centos/"},
  109. {text: "Windows 部署", link: "/setup/server/windows/"}
  110. ]
  111. },
  112. {
  113. text: "开发环境",
  114. items: [
  115. {text: "IDEA", link: "/setup/dev/idea"},
  116. {text: "Revit", link: "/setup/dev/revit"},
  117. {text: "Visual Studio", link: "/setup/dev/vsts"}
  118. ]
  119. }
  120. ]
  121. }
  122. ]
  123. },
  124. {
  125. text: "API参考",
  126. items: [
  127. {
  128. text: "后台开发",
  129. items: [
  130. { text: "Kotlin支持库", link: "http://adm.sagacloud.cn:8080/api/server/kotlin" },
  131. { text: "后台框架库", link: "http://adm.sagacloud.cn:8080/api/server/service" },
  132. { text: "数据中心", link: "http://adm.sagacloud.cn:8080/api/server/datacenter" },
  133. { text: "ADM后台", link: "http://adm.sagacloud.cn:8080/api/server/adm" }
  134. ]
  135. },
  136. {
  137. text: "移动端开发",
  138. items: [
  139. { text: "图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
  140. ]
  141. }
  142. ]
  143. },
  144. {
  145. text: "编码规范",
  146. items: [
  147. { text: "C#", link: "/style/csharp/" },
  148. { text: "Kotlin", link: "/style/kotlin/" },
  149. { text: "Python", link: "/style/python/" },
  150. { text: "SQL", link: "/style/sql/" },
  151. { text: "TypeScript", link: "/style/typescript/" }
  152. ]
  153. }
  154. ],
  155. displayAllHeaders: true,
  156. sidebarDepth: 1,
  157. sidebar: {
  158. "/setup/server/" : setupServerContent,
  159. "/setup/dev/" : setupDevContent,
  160. "/revit/" : revitContent,
  161. "/dev/database/" : databaseContent,
  162. "/dev/data-center/" : dataCenterContent,
  163. "/dev/paas/" : paasContent,
  164. "/dev/revit-center/" : revitCenterContent,
  165. "/dev/data-center-scheme/" : dataCenterScheme,
  166. "/dev/lib/" : libContent,
  167. }
  168. },
  169. devServer :{
  170. proxy: {
  171. '/gogs': {
  172. target: 'http://39.106.8.246:3003',
  173. changeOrigin: true,
  174. secure: false,
  175. pathRewrite: {
  176. '^/gogs': '',
  177. },
  178. bypass: function(req, res, proxyOptions) {
  179. req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
  180. }
  181. },
  182. '/datacenter': {
  183. target: 'http://47.93.22.124:8080/datacenter',
  184. changeOrigin: true,
  185. secure: false,
  186. pathRewrite: {
  187. '^/datacenter': '',
  188. }
  189. },
  190. '/labsl': {
  191. target: 'http://60.205.177.43:8080/labsl',
  192. changeOrigin: true,
  193. secure: false,
  194. pathRewrite: {
  195. '^/labsl': '',
  196. }
  197. }
  198. }
  199. }
  200. };