config.js 4.8 KB

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