config.js 4.3 KB

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