123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- const setupDevContent = require("../setup/dev/index");
- const setupServerContent = require("../setup/server/index");
- const revitContent = require("../revit/index");
- const databaseContent = require("../dev/database/index");
- const dataCenterContent = require("../dev/data-center/index");
- const paasContent = require("../dev/paas/index");
- const revitCenterContent = require("../dev/revit-center/index");
- const dataCenterScheme = require("../dev/data-center-scheme/index");
- const libContent = require("../dev/lib/index");
- module.exports = {
- title: "数字化交付后台开发文档",
- description: "博锐尚格数字化交付后台开发文档",
- base: "/service/",
- plugins: [
- "@vuepress/last-updated",
- "plugin-back-to-top",
- [
- 'vuepress-plugin-typescript',
- {
- tsLoaderOptions: {
- },
- },
- ],
- [
- 'vuepress-plugin-mathjax',
- {
- target: 'svg',
- macros: {
- '*': '\\times',
- },
- },
- ],
- ],
- markdown: {
- lineNumbers: true
- },
- themeConfig: {
- logo: "/assets/img/logo.png",
- nav: [
- {text: "首页", link: "/"},
- {
- text: "安装配置",
- items: [
- {
- text: "服务器配置",
- items: [
- {text: "CentoOS 部署", link: "/setup/server/centos/"},
- {text: "Windows 部署", link: "/setup/server/windows/"}
- ]
- },
- {
- text: "开发环境",
- items: [
- {text: "IDEA", link: "/setup/dev/idea"},
- {text: "Revit", link: "/setup/dev/revit"},
- {text: "Visual Studio", link: "/setup/dev/vsts"}
- ]
- }
- ]
- },
- {
- text: "开发文档",
- items: [
- {
- text: "后台开发",
- items: [
- {text: "数据中心", link: "/dev/data-center/"},
- // {text: "物理世界同步", link: "/dev/dataplatform-sync/"},
- {text: "模型管理", link: "/dev/revit-center/"},
- {text: "数据中台参考", link: "/dev/paas/"},
- {text: "服务支持库", link: "/dev/lib/"}
- ]
- },
- {
- text: "移动端开发",
- items: [
- { text: "Android 图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
- ]
- },
- {
- text: "数据库设计",
- items: [
- { text: "数据中心", link: "/dev/database/data-center/" },
- { text: "系统图", link: "/dev/database/topo/" },
- { text: "蜡笔森林", link: "/dev/database/labsl/" }
- ]
- },
- {
- text: "新版数据字典物理世界对接",
- items: [
- { text: "新版字典中台工具接口对接", link: "/dev/data-center-scheme/" },
- // { text: "新版字典ADM对接", link: "/dev/data-center-scheme/" },
- // { text: "新版字典对接数据中心", link: "/dev/data-center-scheme/" },
- // { text: "新版物理世界对接数据中心", link: "/dev/data-center-scheme/" }
- ]
- },
- ]
- },
- {
- text: "新兵手册",
- items: [
- // {
- // text: "微服务",
- // items: [
- {
- text: "eureka服务器搭建",
- items: [
- {text: "CentoOS 部署", link: "/setup/server/centos/"},
- {text: "Windows 部署", link: "/setup/server/windows/"}
- ]
- }
- ]
- // }
- // ]
- },
- {
- text: "API参考",
- items: [
- {
- text: "后台开发",
- items: [
- { text: "Kotlin支持库", link: "http://adm.sagacloud.cn:8080/api/server/kotlin" },
- { text: "后台框架库", link: "http://adm.sagacloud.cn:8080/api/server/service" },
- { text: "数据中心", link: "http://adm.sagacloud.cn:8080/api/server/datacenter" },
- { text: "ADM后台", link: "http://adm.sagacloud.cn:8080/api/server/adm" }
- ]
- },
- {
- text: "移动端开发",
- items: [
- { text: "图形引擎", link: "http://http://adm.sagacloud.cn:8080/api/android/graphy/" }
- ]
- }
- ]
- },
- {
- text: "规范",
- items: [
- { text: "C#", link: "/style/csharp/" },
- { text: "Kotlin", link: "/style/kotlin/" },
- { text: "Python", link: "/style/python/" },
- { text: "SQL", link: "/style/sql/" },
- { text: "TypeScript", link: "/style/typescript/" }
- ]
- }
- ],
- displayAllHeaders: true,
- sidebarDepth: 1,
- sidebar: {
- "/setup/server/" : setupServerContent,
- "/setup/dev/" : setupDevContent,
- "/revit/" : revitContent,
- "/dev/database/" : databaseContent,
- "/dev/data-center/" : dataCenterContent,
- "/dev/paas/" : paasContent,
- "/dev/revit-center/" : revitCenterContent,
- "/dev/data-center-scheme/" : dataCenterScheme,
- "/dev/lib/" : libContent,
- }
- },
- devServer :{
- proxy: {
- '/gogs': {
- target: 'http://39.106.8.246:3003',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/gogs': '',
- },
- bypass: function(req, res, proxyOptions) {
- req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
- }
- },
- '/datacenter': {
- target: 'http://47.93.22.124:8080/datacenter',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/datacenter': '',
- }
- },
- '/labsl': {
- target: 'http://60.205.177.43:8080/labsl',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/labsl': '',
- }
- }
- }
- }
- };
|