Skip to content

Commit e440fad

Browse files
authored
docs: use dumi to build new docs (#5378)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated Vercel production deployment workflow to use a different branch trigger - Added `dumi` as a development dependency - Removed Node 14-16 specific scripts - Simplified site development and build scripts - Updated `.gitignore` to exclude `.dumi` directory in the site folder <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent a09b1cf commit e440fad

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/vercel-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env:
55
on:
66
push:
77
branches:
8-
- master
8+
- master-skip-releases
99
jobs:
1010
Deploy-Production:
1111
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ site/dist
3838
package-lock.json
3939
.tshy*
4040
dist
41+
site/.dumi/

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"assert-file": "1",
7070
"coffee": "5",
7171
"cross-env": "7",
72+
"dumi": "^2.4.17",
7273
"egg-plugin-puml": "^2.4.0",
7374
"egg-tracer": "^2.1.0",
7475
"egg-view-nunjucks": "^2.3.0",
@@ -99,10 +100,8 @@
99100
"ci": "egg-bin cov",
100101
"postci": "npm run prepublishOnly && npm run clean",
101102
"prepublishOnly": "tshy && tshy-after && attw --pack --profile node16",
102-
"site:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider APP_ROOT=./site dumi dev",
103-
"site:devWithNode14-16": "cross-env APP_ROOT=./site dumi dev",
104-
"site:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider APP_ROOT=./site dumi build",
105-
"site:buildWithNode14-16": "cross-env APP_ROOT=./site dumi build",
103+
"site:dev": "cross-env APP_ROOT=./site dumi dev",
104+
"site:build": "cross-env APP_ROOT=./site dumi build",
106105
"site:prettier": "prettier --config site/.prettierrc --ignore-path site/.prettierignore --write \"site/**/*.{js,jsx,tsx,ts,less,md,json}\"",
107106
"puml": "puml . --dest ./site"
108107
},

site/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default defineConfig({
8888
title: 'Community',
8989
list: [
9090
{ name: 'Artus.js 官网', url: 'https://artusjs.org' },
91-
{ name: 'CNode 社区', url: 'https://cnodejs.org/' },
91+
{ name: 'CNode 社区', url: 'https://cnodejs.org/' },
9292
{ name: 'Node.js 专栏', url: 'https://www.yuque.com/egg/nodejs' },
9393
{
9494
name: '提交反馈',

0 commit comments

Comments
 (0)