Skip to content

Commit

Permalink
fix: 修复官方文档部署异常,新增部分链接
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl committed Jul 22, 2024
1 parent 5a786d3 commit 46ab19a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
}
})
8 changes: 4 additions & 4 deletions .vitepress/config/navbar.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand All @@ -22,7 +22,7 @@ export const navbar = [
},
],
},
{ text: 'RoadMap', link: '/markdown-examples' },
{text: 'RoadMap', link: '/markdown-examples'},
{
text: version,
items: [
Expand All @@ -40,5 +40,5 @@ export const navbar = [
},
],
},
{ text: '自媒体', link: '/markdown-examples' },
{text: '自媒体', link: '/markdown-examples'},
]
40 changes: 20 additions & 20 deletions .vitepress/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
],
},
]

0 comments on commit 46ab19a

Please sign in to comment.