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

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/vercel-production.yml

+1-1
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

+1
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

+3-4
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

+1-1
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)