Skip to content

Commit 021d46b

Browse files
authored
docs: update site config (#5416)
- add v3 link to nav menu - remove vercel config
1 parent 37aabaa commit 021d46b

5 files changed

Lines changed: 11 additions & 55 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: npm i -g npminstall && npminstall
2626

2727
- name: Build Documents
28-
run: npm run site:build && cp vercel.json ./site/dist/vercel.json
28+
run: npm run site:build
2929

3030
- name: Deploy Documents
3131
uses: peaceiris/actions-gh-pages@v3

.github/workflows/vercel-preview.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/vercel-production.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

site/config/config.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,28 @@ export default defineConfig({
3939
title: 'Plugins',
4040
path: 'https://github.com/search?q=topic%3Aegg-plugin&type=Repositories',
4141
},
42+
{
43+
title: 'v3.x',
44+
path: 'https://v3.eggjs.org',
45+
},
4246
],
4347
'zh-CN': [
4448
null,
4549
{
4650
title: 'GitHub',
4751
path: 'https://github.com/eggjs/egg',
4852
},
53+
{
54+
title: '发布日志',
55+
path: 'https://github.com/eggjs/egg/releases',
56+
},
4957
{
5058
title: '插件列表',
5159
path: 'https://github.com/search?q=topic%3Aegg-plugin&type=Repositories',
5260
},
5361
{
54-
title: '发布日志',
55-
path: 'https://github.com/eggjs/egg/releases',
62+
title: 'v3.x',
63+
path: 'https://v3.eggjs.org',
5664
},
5765
],
5866
},

vercel.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)