Skip to content

Commit

Permalink
docs: use dumi to build new docs (#5378)
Browse files Browse the repository at this point in the history
<!-- 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 -->
  • Loading branch information
fengmk2 authored Dec 30, 2024
1 parent a09b1cf commit e440fad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vercel-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
on:
push:
branches:
- master
- master-skip-releases
jobs:
Deploy-Production:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ site/dist
package-lock.json
.tshy*
dist
site/.dumi/
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"assert-file": "1",
"coffee": "5",
"cross-env": "7",
"dumi": "^2.4.17",
"egg-plugin-puml": "^2.4.0",
"egg-tracer": "^2.1.0",
"egg-view-nunjucks": "^2.3.0",
Expand Down Expand Up @@ -99,10 +100,8 @@
"ci": "egg-bin cov",
"postci": "npm run prepublishOnly && npm run clean",
"prepublishOnly": "tshy && tshy-after && attw --pack --profile node16",
"site:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider APP_ROOT=./site dumi dev",
"site:devWithNode14-16": "cross-env APP_ROOT=./site dumi dev",
"site:build": "cross-env NODE_OPTIONS=--openssl-legacy-provider APP_ROOT=./site dumi build",
"site:buildWithNode14-16": "cross-env APP_ROOT=./site dumi build",
"site:dev": "cross-env APP_ROOT=./site dumi dev",
"site:build": "cross-env APP_ROOT=./site dumi build",
"site:prettier": "prettier --config site/.prettierrc --ignore-path site/.prettierignore --write \"site/**/*.{js,jsx,tsx,ts,less,md,json}\"",
"puml": "puml . --dest ./site"
},
Expand Down
2 changes: 1 addition & 1 deletion site/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default defineConfig({
title: 'Community',
list: [
{ name: 'Artus.js 官网', url: 'https://artusjs.org' },
{ name: 'CNode 社区', url: 'https://cnodejs.org/' },
{ name: 'CNode 社区', url: 'https://cnodejs.org/' },
{ name: 'Node.js 专栏', url: 'https://www.yuque.com/egg/nodejs' },
{
name: '提交反馈',
Expand Down

0 comments on commit e440fad

Please sign in to comment.