docs: split docs package for vuepress (#12382)

* docs: split docs package for vuepress

* fix: yarn lock changes gha

* fix: remove npm script at top level

* docs: update oneclick link

refs: https://github.blog/changelog/2023-04-24-one-click-into-github-codespaces
This commit is contained in:
Tony
2023-04-25 22:20:56 +08:00
committed by GitHub
parent 71f65a51fe
commit b0ff4a0fee
14 changed files with 10006 additions and 7453 deletions
+6 -3
View File
@@ -1,8 +1,11 @@
on:
pull_request: {}
pull_request_target:
branches:
- master
paths:
- .github/workflows/semgrep.yml
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
@@ -13,7 +16,7 @@ name: Semgrep
jobs:
semgrep:
name: Scan
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
+8 -4
View File
@@ -118,6 +118,9 @@ jobs:
fail-fast: false
matrix:
node-version: [ 16, 18 ]
defaults:
run:
working-directory: docs
name: Build docs on Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
@@ -125,14 +128,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: docs/yarn.lock
- run: yarn
- name: Set environment variable for Node v18
if: ${{ matrix.node-version == '18' }}
- 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
- name: Unset environment variable for Node v18
if: ${{ matrix.node-version == '18' }}
- name: Unset environment variable for Node v16 above
if: ${{ matrix.node-version > '16' }}
run: echo "NODE_OPTIONS=''" >> $GITHUB_ENV
all:
+1
View File
@@ -4,6 +4,7 @@ on:
paths:
- '.github/workflows/yarn-lock-changes.yml'
- 'yarn.lock'
- 'docs/yarn.lock'
jobs:
yarn_lock_changes: