feat: add docusaurus website (#13039)

This commit is contained in:
DIYgod
2023-08-15 03:12:12 +01:00
committed by GitHub
parent dcae07a727
commit 7b65ba69bb
1064 changed files with 22126 additions and 22551 deletions
+4 -4
View File
@@ -125,7 +125,7 @@ jobs:
node-version: [ 18, 20 ]
defaults:
run:
working-directory: docs
working-directory: website
name: Build docs on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
@@ -136,14 +136,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
cache-dependency-path: docs/pnpm-lock.yaml
cache-dependency-path: website/pnpm-lock.yaml
- run: pnpm i
- name: Set environment variable for Node v16 above
if: ${{ matrix.node-version > '16' }}
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
- name: Build docs
run: npm run docs:build
working-directory: docs
run: npm run build
working-directory: website
- name: Unset environment variable for Node v16 above
if: ${{ matrix.node-version > '16' }}
run: echo "NODE_OPTIONS=''" >> $GITHUB_ENV