Docs: add migration guide from developers/plugins to plugin-tools repo #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test docs build | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/deploy.yml' | |
- '.github/workflows/test-build.yml' | |
- 'docusaurus/**' | |
jobs: | |
deploy: | |
name: Build docs | |
runs-on: ubuntu-latest | |
env: | |
NX_SKIP_NX_CACHE: 'true' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build documentation website (GH Pages) | |
run: npm run docs:build | |
- name: Clear documentation build | |
run: npm run docs:clear | |
- name: Make docs the homepage of this subsite (Dev Portal) | |
run: | | |
rm -f ./docusaurus/website/src/pages/index.tsx | |
sed -i 's/title: Get started/title: Get started\nslug:\ \//g' ./docusaurus/docs/get-started/get-started.mdx | |
grep -rl "](/docs/" docusaurus/docs | xargs sed -i 's/](\/docs\//](\//g' | |
- name: Build documentation website (Dev Portal) | |
run: npm run docs:build -- --config docusaurus.config.devportal.js |