Skip to content

Commit e119c45

Browse files
committed
更新5.3.0文档
1 parent 369f2bb commit e119c45

30 files changed

+7089
-5557
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ name: 部署文档
44
on:
55
push:
66
branches:
7-
# 确保这是你正在使用的分支名称
87
- docs
98

9+
permissions:
10+
contents: write
11+
1012
jobs:
1113
deploy-gh-pages:
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Checkout
15-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1618
with:
1719
fetch-depth: 0
1820
# 如果你文档需要 Git 子模块,取消注释下一行
@@ -21,24 +23,26 @@ jobs:
2123

2224

2325
- name: 设置 Node.js
24-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2527
with:
26-
node-version: 18
27-
cache: yarn
28+
node-version: 22
29+
cache: npm
2830

2931
- name: 安装依赖
30-
run: yarn install --frozen-lockfile
32+
run: |
33+
corepack enable
34+
npm ci
3135
3236
- name: 构建文档
3337
env:
3438
NODE_OPTIONS: --max_old_space_size=8192
3539
run: |-
36-
yarn run docs:build
40+
npm run docs:build
3741
> src/.vuepress/dist/.nojekyll
3842
3943
- name: 部署文档
4044
uses: JamesIves/github-pages-deploy-action@v4
4145
with:
42-
# 这是文档部署到的分支名称
46+
# 部署文档
4347
branch: gh-pages
4448
folder: src/.vuepress/dist

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.idea
2-
node_modules
3-
src/.vuepress/.*
4-
src/.vuepress/dist
1+
2+
node_modules/
3+
src/.vuepress/.cache/
4+
src/.vuepress/.temp/
5+
src/.vuepress/dist/

0 commit comments

Comments
 (0)