config.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. const setupContent = require("../setup/index");
  2. const graphContent = require("../guides/index");
  3. module.exports = {
  4. title: "数字化交付开发文档",
  5. description: "上格云数字化交付开发文档",
  6. base: "/doc/web/",
  7. plugins: [
  8. "@vuepress/last-updated",
  9. "plugin-back-to-top",
  10. [
  11. 'vuepress-plugin-typescript',
  12. {
  13. tsLoaderOptions: {
  14. },
  15. },
  16. ],
  17. [
  18. 'vuepress-plugin-mathjax',
  19. {
  20. target: 'svg',
  21. macros: {
  22. '*': '\\times',
  23. },
  24. },
  25. ],
  26. ],
  27. markdown: {
  28. lineNumbers: true
  29. },
  30. themeConfig: {
  31. logo: "/assets/img/logo.png",
  32. nav: [
  33. {text: "首页", link: "/"},
  34. {
  35. text: "安装配置",
  36. items: [
  37. {
  38. text: "开发环境",
  39. items: [
  40. {text: "IDEA", link: "/setup/ide/idea"},
  41. {text: "VS Code", link: "/setup/ide/vscode"},
  42. {text: "Node.js", link: "/setup/ide/nodejs"},
  43. ]
  44. },
  45. {
  46. text: "服务器",
  47. items: [
  48. {text: "Nginx", link: "/setup/server/nginx"},
  49. {text: "Tomcat", link: "/setup/server/tomcat"}
  50. ]
  51. },
  52. ]
  53. },
  54. {
  55. text: "开发文档",
  56. items: [
  57. {
  58. text: "引擎",
  59. items: [
  60. {text: "图形引擎", link: "/guides/engine/"},
  61. {text: "场景管理", link: "/guides/scene/"},
  62. {text: "楼层平面图", link: "/guides/big/"},
  63. {text: "系统图", link: "/guides/system-diagram/"},
  64. {text: "编辑器", link: "/guides/edit/"}
  65. ]
  66. },
  67. ]
  68. },
  69. {
  70. text: "API参考",
  71. items: [
  72. { text: "图形引擎", link: "http://adm.sagacloud.cn:8080/api/web/graph/" },
  73. { text: "建筑信息图", link: "http://adm.sagacloud.cn:8080/api/web/big/" }
  74. ]
  75. }
  76. ],
  77. displayAllHeaders: true,
  78. sidebarDepth: 0,
  79. sidebar: {
  80. "/setup/" : setupContent,
  81. "/guides/": graphContent
  82. }
  83. }
  84. };