config.js 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. ]
  64. },
  65. ]
  66. },
  67. {
  68. text: "API参考",
  69. items: [
  70. { text: "图形引擎", link: "http://adm.sagacloud.cn:8080/api/web/graph/" },
  71. { text: "建筑信息图", link: "http://adm.sagacloud.cn:8080/api/web/big/" }
  72. ]
  73. }
  74. ],
  75. displayAllHeaders: true,
  76. sidebarDepth: 1,
  77. sidebar: {
  78. "/setup/" : setupContent,
  79. "/guides/": graphContent
  80. }
  81. }
  82. };