fix(docs): update build scripts and dependencies for VitePress

This commit is contained in:
crazywhalecc
2026-07-14 23:00:56 +08:00
parent c1eefb8399
commit a1ccaaca36
4 changed files with 1342 additions and 294 deletions

View File

@@ -27,9 +27,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- run: npm install
- name: Install documentation dependencies
run: yarn install --frozen-lockfile
- name: "Install PHP for official runners"
uses: shivammathur/setup-php@v2
@@ -57,7 +62,7 @@ jobs:
run: "composer install --no-interaction --no-progress"
- name: Build
run: npm run docs:build
run: yarn docs:build
# Deploy to GitHub Pages only when the workflow is triggered by a push to the v3 branch
- name: Deploy to GitHub Pages