config.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. // }
  114. // ]
  115. },
  116. {
  117. text: "API参考",
  118. items: [
  119. {
  120. text: "后台开发",
  121. items: [
  122. { text: "Kotlin支持库", link: "http://adm.sagacloud.cn:8080/api/server/kotlin" },
  123. { text: "后台框架库", link: "http://adm.sagacloud.cn:8080/api/server/service" },
  124. { text: "数据中心", link: "http://adm.sagacloud.cn:8080/api/server/datacenter" },
  125. { text: "ADM后台", link: "http://adm.sagacloud.cn:8080/api/server/adm" }
  126. ]
  127. },
  128. {
  129. text: "移动端开发",
  130. items: [
  131. { text: "图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
  132. ]
  133. }
  134. ]
  135. },
  136. {
  137. text: "规范",
  138. items: [
  139. { text: "C#", link: "/style/csharp/" },
  140. { text: "Kotlin", link: "/style/kotlin/" },
  141. { text: "Python", link: "/style/python/" },
  142. { text: "SQL", link: "/style/sql/" },
  143. { text: "TypeScript", link: "/style/typescript/" }
  144. ]
  145. }
  146. ],
  147. displayAllHeaders: true,
  148. sidebarDepth: 1,
  149. sidebar: {
  150. "/setup/server/" : setupServerContent,
  151. "/setup/dev/" : setupDevContent,
  152. "/revit/" : revitContent,
  153. "/dev/database/" : databaseContent,
  154. "/dev/data-center/" : dataCenterContent,
  155. "/dev/paas/" : paasContent,
  156. "/dev/revit-center/" : revitCenterContent,
  157. "/dev/data-center-scheme/" : dataCenterScheme,
  158. "/dev/lib/" : libContent,
  159. }
  160. },
  161. devServer :{
  162. proxy: {
  163. '/gogs': {
  164. target: 'http://39.106.8.246:3003',
  165. changeOrigin: true,
  166. secure: false,
  167. pathRewrite: {
  168. '^/gogs': '',
  169. },
  170. bypass: function(req, res, proxyOptions) {
  171. req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
  172. }
  173. },
  174. '/datacenter': {
  175. target: 'http://47.93.22.124:8080/datacenter',
  176. changeOrigin: true,
  177. secure: false,
  178. pathRewrite: {
  179. '^/datacenter': '',
  180. }
  181. },
  182. '/labsl': {
  183. target: 'http://60.205.177.43:8080/labsl',
  184. changeOrigin: true,
  185. secure: false,
  186. pathRewrite: {
  187. '^/labsl': '',
  188. }
  189. }
  190. }
  191. }
  192. };