diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 311baaa..6dd153a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -50,7 +50,7 @@ jobs: # 将README.md同步,利于github pages分支展示 - name: Add Readme.md To Dist run: | - cp -f README.md dist + cp -f README.md dist/ - name: Check GitHub Pages status uses: crazy-max/ghaction-github-status@v4 diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 461d48d..a1267ec 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -7,6 +7,7 @@ import {name} from '../package.json' // https://vitepress.dev/reference/site-config export default defineConfig({ + base: '/core-x', lang: 'zh-CN', title: '@142vip/core-x', titleTemplate: ':title - @142vip/core-x', @@ -59,5 +60,6 @@ export default defineConfig({ rewrites: { ':packages/:pkg/README.md': ':packages/:pkg/index.md', ':packages/:pkg/CHANGELOG.md': ':packages/:pkg/changelog.md', + 'README.md': 'index.md', } }) diff --git a/.vitepress/config/navbar.ts b/.vitepress/config/navbar.ts index bc92fe2..8a37d6c 100644 --- a/.vitepress/config/navbar.ts +++ b/.vitepress/config/navbar.ts @@ -1,10 +1,10 @@ -import { version } from '../../package.json' +import {version} from '../../package.json' /** * 导航栏 */ export const navbar = [ - { text: '首页', link: '/' }, + {text: '首页', link: 'docs/manuscripts/'}, { text: '文档', items: [ @@ -22,7 +22,7 @@ export const navbar = [ }, ], }, - { text: 'RoadMap', link: '/markdown-examples' }, + {text: 'RoadMap', link: '/markdown-examples'}, { text: version, items: [ @@ -40,5 +40,5 @@ export const navbar = [ }, ], }, - { text: '自媒体', link: '/markdown-examples' }, + {text: '自媒体', link: '/markdown-examples'}, ] diff --git a/.vitepress/config/sidebar.ts b/.vitepress/config/sidebar.ts index e069cd6..aff8146 100644 --- a/.vitepress/config/sidebar.ts +++ b/.vitepress/config/sidebar.ts @@ -5,46 +5,46 @@ export const sidebar = [ { text: '工程化', items: [ - { text: '@142vip/fairy-cli', link: '/markdown-examples' }, - { text: '@142vip/release-version', link: '/api-examples' }, - { text: '@142vip/changelog', link: '/markdown-examples' }, - { text: '@142vip/eslint-config', link: '/api-examples' }, + {text: '@142vip/fairy-cli', link: '/packages/fairy-cli'}, + {text: '@142vip/release-version', link: '/packages/release-version'}, + {text: '@142vip/changelog', link: '/packages/changelog'}, + {text: '@142vip/eslint-config', link: '/packages/eslint-config'}, ], }, { text: '通用', items: [ - { text: '@142vip/redis', link: '/markdown-examples' }, - { text: '@142vip/typeorm', link: '/markdown-examples' }, - { text: '@142vip/oauth', link: '/markdown-examples' }, + {text: '@142vip/redis', link: '/packages/redis'}, + {text: '@142vip/typeorm', link: '/packages/redis'}, + {text: '@142vip/oauth', link: '/packages/oauth'}, ], }, { text: 'Egg.js框架', items: [ - { text: '@142vip/egg', link: '/api-examples' }, - { text: '@142vip/egg-axios', link: '/markdown-examples' }, - { text: '@142vip/egg-grpc-client', link: '/api-examples' }, - { text: '@142vip/egg-grpc-server', link: '/markdown-examples' }, - { text: '@142vip/egg-mysql', link: '/api-examples' }, - { text: '@142vip/egg-redis', link: '/markdown-examples' }, - { text: '@142vip/egg-sequelize', link: '/api-examples' }, - { text: '@142vip/egg-swagger', link: '/markdown-examples' }, + {text: '@142vip/egg', link: '/packages/egg'}, + {text: '@142vip/egg-axios', link: '/packages/axios'}, + {text: '@142vip/egg-grpc-client', link: '/packages/egg-grpc-client'}, + {text: '@142vip/egg-grpc-server', link: '/packages/egg-grpc-server'}, + {text: '@142vip/egg-mysql', link: '/packages/egg-mysql'}, + {text: '@142vip/egg-redis', link: '/packages/egg-redis'}, + {text: '@142vip/egg-sequelize', link: '/packages/egg-sequelize'}, + {text: '@142vip/egg-swagger', link: '/packages/egg-swagger'}, ], }, { text: 'Nest.js框架', items: [ - { text: '@142vip/nest', link: '/markdown-examples' }, - { text: '@142vip/nest-redis', link: '/api-examples' }, - { text: '@142vip/nest-typeorm', link: '/markdown-examples' }, + {text: '@142vip/nest', link: '/packages/nest'}, + {text: '@142vip/nest-redis', link: '/packages/nest-redis'}, + {text: '@142vip/nest-typeorm', link: '/packages/nest-typeorm'}, ], }, { text: '博客工具', items: [ - { text: '@142vip/vuepress', link: '/markdown-examples' }, - { text: '@142vip/vitepress', link: '/api-examples' }, + {text: '@142vip/vuepress', link: '/packages/vuepress'}, + {text: '@142vip/vitepress', link: '/packages/vitepress'}, ], }, ]