|
@@ -2,12 +2,11 @@ import { defineConfig } from 'vitepress'
|
|
import { CustomAvatars } from './constant'
|
|
import { CustomAvatars } from './constant'
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
import { getChangelogAndContributors } from 'vitepress-plugin-changelog'
|
|
import { getChangelogAndContributors } from 'vitepress-plugin-changelog'
|
|
-import { demoPreviewPlugin } from '@vitepress-code-preview/plugin'
|
|
|
|
-import { viteDemoPreviewPlugin } from '@vitepress-code-preview/plugin'
|
|
|
|
|
|
+
|
|
|
|
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
base: '/efe-docs/',
|
|
base: '/efe-docs/',
|
|
- outDir: './efe-docs',
|
|
|
|
|
|
+ outDir: '../dist/efe-docs',
|
|
title: '文档',
|
|
title: '文档',
|
|
description: "剑鱼前端团队内部文档 - 探索前端世界,从文档开始",
|
|
description: "剑鱼前端团队内部文档 - 探索前端世界,从文档开始",
|
|
lang: 'zh-CN',
|
|
lang: 'zh-CN',
|
|
@@ -18,9 +17,9 @@ export default defineConfig({
|
|
'plugins/**',
|
|
'plugins/**',
|
|
'scripts/**',
|
|
'scripts/**',
|
|
],
|
|
],
|
|
- // sitemap: {
|
|
|
|
- // hostname: './'
|
|
|
|
- // },
|
|
|
|
|
|
+ sitemap: {
|
|
|
|
+ hostname: 'http://192.168.3.128:8080/efe-docs/'
|
|
|
|
+ },
|
|
rewrites: {
|
|
rewrites: {
|
|
'apps/(.*)/README.md': 'apps/(.*)/index.md',
|
|
'apps/(.*)/README.md': 'apps/(.*)/index.md',
|
|
'core/(.*)/README.md': 'core/(.*)/index.md',
|
|
'core/(.*)/README.md': 'core/(.*)/index.md',
|
|
@@ -47,10 +46,18 @@ export default defineConfig({
|
|
{ text: 'work-bench', link: '/apps/work-bench/' },
|
|
{ text: 'work-bench', link: '/apps/work-bench/' },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ text: '组件',
|
|
|
|
+ items: [
|
|
|
|
+ { text: 'mobile', link: 'http://192.168.3.128:8080/efe-docs-mobile/' },
|
|
|
|
+ { text: 'pc', link: 'http://192.168.3.128:8080/efe-docs-pc/' },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
{
|
|
{
|
|
text: 'data',
|
|
text: 'data',
|
|
items: [
|
|
items: [
|
|
{ text: '🚧 @jy/api', link: '/data/api/' },
|
|
{ text: '🚧 @jy/api', link: '/data/api/' },
|
|
|
|
+ { text: '🚧 @jy/store', link: '/data/store/' },
|
|
{ text: '@jy/data-models', link: '/data/data-models/' }
|
|
{ text: '@jy/data-models', link: '/data/data-models/' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -79,8 +86,14 @@ export default defineConfig({
|
|
{ text: 'go模板相关', link: '/go/go安装应用' }
|
|
{ text: 'go模板相关', link: '/go/go安装应用' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- { text: '资源', link: '/resource' },
|
|
|
|
- { text: '参与建设', link: '/to-do/' }
|
|
|
|
|
|
+ {
|
|
|
|
+ text: '参与建设',
|
|
|
|
+ items: [
|
|
|
|
+ { text: '资源', link: '/resource' },
|
|
|
|
+ { text: '参与建设', link: '/to-do/' },
|
|
|
|
+ { text: '网站地图', link: '/sitemap' }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
],
|
|
],
|
|
sidebar: {
|
|
sidebar: {
|
|
'/guide/': {
|
|
'/guide/': {
|
|
@@ -130,9 +143,9 @@ export default defineConfig({
|
|
text: '业务模型',
|
|
text: '业务模型',
|
|
base: '/data/data-models/modules/',
|
|
base: '/data/data-models/modules/',
|
|
items: [
|
|
items: [
|
|
- { text: 'article 详情页', link: '/article/' },
|
|
|
|
- { text: 'quick-monitor<br>项目、企业、业主监控', link: '/quick-monitor/' },
|
|
|
|
- { text: 'quick-search<br>标讯、企业、采购搜索', link: '/quick-search/' },
|
|
|
|
|
|
+ { text: 'article 详情页', link: 'article/' },
|
|
|
|
+ { text: 'quick-monitor<br>项目、企业、业主监控', link: 'quick-monitor/' },
|
|
|
|
+ { text: 'quick-search<br>标讯、企业、采购搜索', link: 'quick-search/' },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -146,7 +159,7 @@ export default defineConfig({
|
|
items: [
|
|
items: [
|
|
{
|
|
{
|
|
text: 'article-content<br>详情页',
|
|
text: 'article-content<br>详情页',
|
|
- link: '/views/article-content/composables/'
|
|
|
|
|
|
+ link: 'views/article-content/composables/'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -154,9 +167,9 @@ export default defineConfig({
|
|
text: 'composables',
|
|
text: 'composables',
|
|
base: '/apps/bigmember_pc/src/composables/',
|
|
base: '/apps/bigmember_pc/src/composables/',
|
|
items: [
|
|
items: [
|
|
- { text: 'down-project-report<br>下载项目报告', link: '/down-project-report/' },
|
|
|
|
- { text: 'quick-join-bid<br>参标,取消参标相关', link: '/quick-join-bid/' },
|
|
|
|
- { text: 'quick-monitor<br>项目、企业、业主监控', link: '/quick-monitor/' }
|
|
|
|
|
|
+ { text: 'down-project-report<br>下载项目报告', link: 'down-project-report/' },
|
|
|
|
+ { text: 'quick-join-bid<br>参标,取消参标相关', link: 'quick-join-bid/' },
|
|
|
|
+ { text: 'quick-monitor<br>项目、企业、业主监控', link: 'quick-monitor/' }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -168,8 +181,28 @@ export default defineConfig({
|
|
text: 'composables',
|
|
text: 'composables',
|
|
base: '/apps/mobile/src/composables/',
|
|
base: '/apps/mobile/src/composables/',
|
|
items: [
|
|
items: [
|
|
- { text: 'quick-monitor<br>项目、企业、业主监控', link: '/quick-monitor/' }
|
|
|
|
|
|
+ { text: 'quick-monitor<br>项目、企业、业主监控', link: 'quick-monitor/' }
|
|
]
|
|
]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ text: 'utils',
|
|
|
|
+ base: '/apps/mobile/src/utils/',
|
|
|
|
+ items: [
|
|
|
|
+ { text: 'utils', link: '/' },
|
|
|
|
+ { text: 'directive', link: 'directive/' },
|
|
|
|
+ { text: 'format', link: 'format/' },
|
|
|
|
+ { text: 'prototype', link: 'prototype/' },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ text: 'data',
|
|
|
|
+ base: '/apps/mobile/src/',
|
|
|
|
+ link: 'data/'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ text: 'store',
|
|
|
|
+ base: '/apps/mobile/src/',
|
|
|
|
+ link: 'store/'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -220,6 +253,7 @@ export default defineConfig({
|
|
contributor.avatar = `https://jygit.jydev.jianyu360.cn/avatars/${CustomAvatars[contributor.name]}`
|
|
contributor.avatar = `https://jygit.jydev.jianyu360.cn/avatars/${CustomAvatars[contributor.name]}`
|
|
return contributor
|
|
return contributor
|
|
})
|
|
})
|
|
|
|
+ console.log(relativePath, CustomContributors.length);
|
|
return {
|
|
return {
|
|
CommitData: {
|
|
CommitData: {
|
|
contributors: CustomContributors,
|
|
contributors: CustomContributors,
|
|
@@ -234,16 +268,6 @@ export default defineConfig({
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
external: ["vue/server-renderer"]
|
|
external: ["vue/server-renderer"]
|
|
}
|
|
}
|
|
- },
|
|
|
|
- plugins: [
|
|
|
|
- viteDemoPreviewPlugin()
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- markdown: {
|
|
|
|
- config(md) {
|
|
|
|
- md.use(demoPreviewPlugin, {
|
|
|
|
- docRoot: '../'
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
})
|
|
})
|