|
@@ -1,5 +1,6 @@
|
|
import { defineConfig } from 'vitepress'
|
|
import { defineConfig } from 'vitepress'
|
|
import { CustomAvatars } from './constant'
|
|
import { CustomAvatars } from './constant'
|
|
|
|
+// @ts-ignore
|
|
import { getChangelogAndContributors } from 'vitepress-plugin-changelog'
|
|
import { getChangelogAndContributors } from 'vitepress-plugin-changelog'
|
|
|
|
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
@@ -8,6 +9,24 @@ export default defineConfig({
|
|
title: '文档',
|
|
title: '文档',
|
|
description: "剑鱼前端团队内部文档 - 探索前端世界,从文档开始",
|
|
description: "剑鱼前端团队内部文档 - 探索前端世界,从文档开始",
|
|
lang: 'zh-CN',
|
|
lang: 'zh-CN',
|
|
|
|
+ srcExclude: [
|
|
|
|
+ 'dist/**',
|
|
|
|
+ 'node_modules/**',
|
|
|
|
+ 'plugins/**',
|
|
|
|
+ 'scripts/**',
|
|
|
|
+ ],
|
|
|
|
+ // sitemap: {
|
|
|
|
+ // hostname: './'
|
|
|
|
+ // },
|
|
|
|
+ rewrites: {
|
|
|
|
+ 'apps/(.*)/README.md': 'apps/(.*)/index.md',
|
|
|
|
+ 'core/(.*)/README.md': 'core/(.*)/index.md',
|
|
|
|
+ 'packages/(.*)/README.md': 'packages/(.*)/index.md',
|
|
|
|
+ 'data/(.*)/README.md': 'data/(.*)/index.md',
|
|
|
|
+ 'docs/:name.md': ':name.md',
|
|
|
|
+ 'docs/:group/:name.md': ':group/:name.md',
|
|
|
|
+ 'docs/:group/:group2/:name.md': ':group/:group2/:name.md',
|
|
|
|
+ },
|
|
themeConfig: {
|
|
themeConfig: {
|
|
siteTitle: ' ',
|
|
siteTitle: ' ',
|
|
logo: {
|
|
logo: {
|
|
@@ -16,24 +35,41 @@ export default defineConfig({
|
|
},
|
|
},
|
|
nav: [
|
|
nav: [
|
|
{ text: '指南', link: '/guide/getting-started' },
|
|
{ text: '指南', link: '/guide/getting-started' },
|
|
- { text: '组件', link: '/component/' },
|
|
|
|
{
|
|
{
|
|
- text: '知识库',
|
|
|
|
|
|
+ text: '项目文档',
|
|
items: [
|
|
items: [
|
|
- { text: 'monorepo', link: '/monorepo/introduce' },
|
|
|
|
- { text: '常见问题自检清单', link: '/check/' },
|
|
|
|
- { text: '通用埋点相关', link: '/track/index-new' },
|
|
|
|
- { text: 'go模板相关', link: '/go/go安装应用' }
|
|
|
|
|
|
+ { text: 'bigmember_pc', link: '/apps/bigmember_pc/' },
|
|
|
|
+ { text: '🚧 jy-pc', link: '/apps/jy-pc/' },
|
|
|
|
+ { text: 'mobile', link: '/apps/mobile/' },
|
|
|
|
+ { text: 'work-bench', link: '/apps/work-bench/' },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ text: 'data',
|
|
|
|
+ items: [
|
|
|
|
+ { text: '🚧 @jy/api', link: '/data/api/' },
|
|
|
|
+ { text: '@jy/data-models', link: '/data/data-models/' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: 'packages',
|
|
text: 'packages',
|
|
items: [
|
|
items: [
|
|
- { text: '@jy/emiiter', link: '/core-emitter/introduce' },
|
|
|
|
|
|
+ { text: '@jy/emiiter', link: '/core/emitter/' },
|
|
{ text: '@jy/plugin-login-auth', link: '/plugin-login-auth/introduce' },
|
|
{ text: '@jy/plugin-login-auth', link: '/plugin-login-auth/introduce' },
|
|
|
|
+ { text: '@jy/vue-anti', link: '/packages/vue-anti/' },
|
|
|
|
+ { text: '@jy/work-bench-frame', link: '/packages/work-bench-frame/' },
|
|
{ text: '@jianyu/cli', link: '/cli/' },
|
|
{ text: '@jianyu/cli', link: '/cli/' },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ text: '知识库',
|
|
|
|
+ items: [
|
|
|
|
+ { text: 'monorepo', link: '/monorepo/introduce' },
|
|
|
|
+ { text: '常见问题自检清单', link: '/check/' },
|
|
|
|
+ { text: '通用埋点相关', link: '/track/index-new' },
|
|
|
|
+ { text: 'go模板相关', link: '/go/go安装应用' }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
{ text: '资源', link: '/resource' },
|
|
{ text: '资源', link: '/resource' },
|
|
{ text: '参与建设', link: '/to-do/' }
|
|
{ text: '参与建设', link: '/to-do/' }
|
|
],
|
|
],
|
|
@@ -77,6 +113,55 @@ export default defineConfig({
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
+ },
|
|
|
|
+ '/data/data-models/': {
|
|
|
|
+ base: '/data/data-models/',
|
|
|
|
+ items: [
|
|
|
|
+ {
|
|
|
|
+ text: '业务模型',
|
|
|
|
+ base: '/data/data-models/modules/',
|
|
|
|
+ items: [
|
|
|
|
+ { text: 'article 详情页', link: '/article/' },
|
|
|
|
+ { text: 'quick-monitor<br>项目、企业、业主监控', link: '/quick-monitor/' },
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ '/apps/bigmember_pc/': {
|
|
|
|
+ base: '/apps/bigmember_pc/',
|
|
|
|
+ items: [
|
|
|
|
+ {
|
|
|
|
+ text: '业务维护文档',
|
|
|
|
+ base: '/apps/bigmember_pc/src/',
|
|
|
|
+ items: [
|
|
|
|
+ {
|
|
|
|
+ text: 'article-content<br>详情页',
|
|
|
|
+ link: '/views/article-content/composables/'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ text: 'composables',
|
|
|
|
+ base: '/apps/bigmember_pc/src/composables/',
|
|
|
|
+ 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/' }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ '/apps/mobile/': {
|
|
|
|
+ base: '/apps/mobile/',
|
|
|
|
+ items: [
|
|
|
|
+ {
|
|
|
|
+ text: 'composables',
|
|
|
|
+ base: '/apps/mobile/src/composables/',
|
|
|
|
+ items: [
|
|
|
|
+ { text: 'quick-monitor<br>项目、企业、业主监控', link: '/quick-monitor/' }
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
outline: {
|
|
outline: {
|
|
@@ -115,5 +200,12 @@ export default defineConfig({
|
|
title: '更新记录'
|
|
title: '更新记录'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // vite: {
|
|
|
|
+ // build: {
|
|
|
|
+ // rollupOptions: {
|
|
|
|
+ // external: ["vue/server-renderer", "vue"]
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
})
|
|
})
|