config.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. const setupContent = require("../setup/index");
  2. const revitContent = require("../revit/index");
  3. const databaseContent = require("../dev/database/index");
  4. const dataCenterContent = require("../dev/data-center/index");
  5. const paasContent = require("../dev/paas/index");
  6. const revitCenterContent = require("../dev/revit-center/index");
  7. const sagaGraphyContent = require("../dev/saga-graphy/index");
  8. const dataCenterScheme = require("../dev/data-center-scheme/index");
  9. module.exports = {
  10. title: "数字化交付开发文档",
  11. description: "上格云数字化交付开发文档",
  12. base: "/doc/",
  13. plugins: [
  14. "@vuepress/last-updated",
  15. "plugin-back-to-top",
  16. [
  17. 'vuepress-plugin-typescript',
  18. {
  19. tsLoaderOptions: {
  20. },
  21. },
  22. ],
  23. [
  24. 'vuepress-plugin-mathjax',
  25. {
  26. target: 'svg',
  27. macros: {
  28. '*': '\\times',
  29. },
  30. },
  31. ],
  32. ],
  33. markdown: {
  34. lineNumbers: true
  35. },
  36. themeConfig: {
  37. logo: "/assets/img/logo.png",
  38. nav: [
  39. {text: "首页", link: "/"},
  40. {
  41. text: "服务器安装",
  42. items: [
  43. {text: "CentoOS 部署", link: "/setup/centos/"},
  44. {text: "Windows 部署", link: "/setup/windows/"}
  45. ]
  46. },
  47. {
  48. text: "开发文档",
  49. items: [
  50. {
  51. text: "后台开发",
  52. items: [
  53. {text: "数据中心", link: "/dev/data-center/"},
  54. {text: "物理世界同步", link: "/dev/dataplatform-sync/"},
  55. {text: "模型管理", link: "/dev/revit-center/"},
  56. {text: "数据中台参考", link: "/dev/paas/"}
  57. ]
  58. },
  59. {
  60. text: "Web开发",
  61. items: [
  62. { text: "图形引擎", link: "/dev/saga-graphy/" },
  63. { text: "建筑信息图", link: "/dev/saga-big/" }
  64. ]
  65. },
  66. {
  67. text: "移动端开发",
  68. items: [
  69. { text: "Android 图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
  70. ]
  71. },
  72. {
  73. text: "数据库设计",
  74. items: [
  75. { text: "数据中心", link: "/dev/database/data-center/" },
  76. { text: "系统图", link: "/dev/database/topo/" }
  77. ]
  78. },
  79. {
  80. text: "新版数据字典物理世界对接",
  81. items: [
  82. { text: "新版字典中台工具接口对接", link: "/dev/data-center-scheme/" },
  83. // { text: "新版字典ADM对接", link: "/dev/data-center-scheme/" },
  84. // { text: "新版字典对接数据中心", link: "/dev/data-center-scheme/" },
  85. // { text: "新版物理世界对接数据中心", link: "/dev/data-center-scheme/" }
  86. ]
  87. },
  88. ]
  89. },
  90. {
  91. text: "API参考",
  92. items: [
  93. {
  94. text: "后台开发",
  95. items: [
  96. { text: "Kotlin支持库", link: "http://adm.sagacloud.cn:8080/api/server/kotlin" },
  97. { text: "后台框架库", link: "http://adm.sagacloud.cn:8080/api/server/service" },
  98. { text: "数据中心", link: "http://adm.sagacloud.cn:8080/api/server/datacenter" },
  99. { text: "ADM后台", link: "http://adm.sagacloud.cn:8080/api/server/adm" }
  100. ]
  101. },
  102. {
  103. text: "Web开发",
  104. items: [
  105. { text: "图形引擎", link: "http://adm.sagacloud.cn:8080/api/web/graph/" },
  106. { text: "建筑信息图", link: "http://adm.sagacloud.cn:8080/api/web/big/" }
  107. ]
  108. },
  109. {
  110. text: "移动端开发",
  111. items: [
  112. { text: "图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
  113. ]
  114. }
  115. ]
  116. },
  117. {
  118. text: "编码规范",
  119. items: [
  120. { text: "C#", link: "/style/csharp/" },
  121. { text: "Kotlin", link: "/style/kotlin/" },
  122. { text: "Python", link: "/style/python/" },
  123. { text: "SQL", link: "/style/sql/" },
  124. { text: "TypeScript", link: "/style/typescript/" }
  125. ]
  126. }
  127. ],
  128. displayAllHeaders: true,
  129. sidebarDepth: 2,
  130. sidebar: {
  131. "/setup/" : setupContent,
  132. "/revit/" : revitContent,
  133. "/dev/database/" : databaseContent,
  134. "/dev/data-center/" : dataCenterContent,
  135. "/dev/paas/" : paasContent,
  136. "/dev/revit-center/" : revitCenterContent,
  137. "/dev/saga-graphy/": sagaGraphyContent,
  138. "/dev/data-center-scheme/" : dataCenterScheme,
  139. }
  140. }
  141. };