config.js 4.4 KB

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