config.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. const setupContent = require("../setup/index");
  2. const graphContent = require("../guides/index");
  3. // const notionContent = require('../notion/index');
  4. const standardContent = require('../standard/index');
  5. const code3dServer = require('../code3dServer/index');
  6. module.exports = {
  7. title: "博锐尚格 Web 组件开发文档",
  8. description: "博锐尚格 Web 组件开发文档",
  9. base: "/web/",
  10. plugins: [
  11. "@vuepress/last-updated",
  12. "plugin-back-to-top",
  13. [
  14. 'vuepress-plugin-typescript',
  15. {
  16. tsLoaderOptions: {},
  17. },
  18. ],
  19. [
  20. 'vuepress-plugin-mathjax',
  21. {
  22. target: 'svg',
  23. macros: {
  24. '*': '\\times',
  25. },
  26. },
  27. ],
  28. ],
  29. markdown: {
  30. lineNumbers: true
  31. },
  32. themeConfig: {
  33. logo: "/assets/img/logo.png",
  34. nav: [{
  35. text: "首页",
  36. link: "/"
  37. },
  38. {
  39. text: "安装配置",
  40. items: [{
  41. text: "开发环境",
  42. items: [{
  43. text: "IDEA",
  44. link: "/setup/ide/idea"
  45. },
  46. {
  47. text: "VS Code",
  48. link: "/setup/ide/vscode"
  49. },
  50. {
  51. text: "Node.js",
  52. link: "/setup/ide/nodejs"
  53. },
  54. {
  55. text: "vue-cli",
  56. link: "/setup/ide/vuecli"
  57. },
  58. {
  59. text: "plantUML",
  60. link: "/setup/ide/plantUML"
  61. }
  62. ]
  63. },
  64. {
  65. text: "服务器",
  66. items: [{
  67. text: "基础配置",
  68. link: "/setup/server/nginx"
  69. }, {
  70. text: "应用配置",
  71. link: "/setup/application/tuopu"
  72. }
  73. ]
  74. },
  75. ]
  76. },
  77. {
  78. text: "开发文档",
  79. items: [
  80. {
  81. text: "引擎",
  82. items: [
  83. {text: "数据格式", link: "/guides/format/floorMap.md"},
  84. {text: "图形引擎", link: "/guides/engine/"},
  85. {text: "场景管理", link: "/guides/scene/"},
  86. {text: "楼层平面图", link: "/guides/big/"},
  87. // {text: "系统图", link: "/guides/system-diagram/"},
  88. {text: "编辑器", link: "/guides/edit/"},
  89. {
  90. text: "平面图嵌入指南",
  91. link: "/guides/tDInsert/brief.md"
  92. },
  93. {
  94. text: "拓扑图嵌入指南",
  95. link: "/guides/tuopuInsert/brief.md"
  96. }
  97. ]
  98. },
  99. {
  100. text: "接口",
  101. items: [
  102. {text: 'web 接口', link: "/guides/interface/"},
  103. ]
  104. },
  105. ]
  106. },
  107. {
  108. text:'可编程模型服务',
  109. items:[
  110. {
  111. text:'Web3D',
  112. items:[
  113. {
  114. text:'开发文档',
  115. link: "/code3dServer/CodeDocument/JiChuHelp/QingLiangHuaFuWu/服务简介.md"
  116. }
  117. ]
  118. }
  119. ]
  120. },
  121. {
  122. text: "开发规范",
  123. items: [
  124. {text: "javascript", link: "/standard/javascript.md"},
  125. {text: "typescript", link: "/standard/typescript/"},
  126. {text: "约定", link: "/standard/appoint.md"},
  127. {text: "git", link: "/standard/git.md"},
  128. {text: "typescript 自动生成 api 文档", link: "/standard/typedoc.md"},
  129. ]
  130. },
  131. {
  132. text: "API参考",
  133. items: [{
  134. text: "图形引擎",
  135. link: "http://doc.sagacloud.cn/api/web/graph/"
  136. },
  137. {
  138. text: "建筑信息图",
  139. link: "http://doc.sagacloud.cn/api/web/big/"
  140. },
  141. {
  142. text: "编辑器",
  143. link: "http://doc.sagacloud.cn/api/web/edit/"
  144. },
  145. ]
  146. },
  147. // {
  148. // text: "概念解释",
  149. // items: [{
  150. // text: "系统图相关",
  151. // items: [{
  152. // text: "系统图",
  153. // link: "/notion/system/system.md"
  154. // },]
  155. // }, {
  156. // text: "服务相关",
  157. // items: [{
  158. // text: "数据中台",
  159. // link: "/notion/middle/middle.md"
  160. // }, {
  161. // text: "数据中心",
  162. // link: "/notion/center/center.md"
  163. // }, {
  164. // text: "蜡笔森林",
  165. // link: "/notion/crayon/crayon.md"
  166. // }]
  167. // }, {
  168. // text: "Revit",
  169. // items: [{
  170. // text: "Revit",
  171. // link: "/notion/revit/revit.md"
  172. // }]
  173. // }]
  174. // }
  175. ],
  176. displayAllHeaders: true,
  177. sidebarDepth: 0,
  178. sidebar: {
  179. "/setup/": setupContent,
  180. "/guides/": graphContent,
  181. // "/notion": notionContent,
  182. "/standard": standardContent,
  183. "/code3dServer": code3dServer,
  184. }
  185. },
  186. module: {
  187. rules: [{
  188. test: /\.less$/,
  189. loader: 'less-loader', // compiles Less to CSS
  190. },],
  191. },
  192. devServer: {
  193. proxy: {
  194. '/gogs': {
  195. target: 'http://39.106.8.246:3003',
  196. changeOrigin: true,
  197. secure: false,
  198. pathRewrite: {
  199. '^/gogs': '',
  200. },
  201. bypass: function (req, res, proxyOptions) {
  202. req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ==";
  203. }
  204. },
  205. '/labsl': {
  206. target: 'http://39.102.40.239:8080',
  207. changeOrigin: true,
  208. secure: false,
  209. },
  210. // 图片服务器
  211. '/image-service': {
  212. target: 'http://adm.sagacloud.cn',
  213. changeOrigin: true,
  214. secure: false,
  215. },
  216. }
  217. },
  218. };