config.js 4.0 KB

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