From: Sebastián Ramírez Date: Mon, 13 Dec 2021 10:47:07 +0000 (+0100) Subject: 🔧 Split MkDocs insiders build in CI to support building from PRs (#186) X-Git-Tag: 0.0.5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14a9788eb1bf444b9d15f69c3504891e4099914d;p=thirdparty%2Ffastapi%2Fsqlmodel.git 🔧 Split MkDocs insiders build in CI to support building from PRs (#186) --- diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 31b79922..72a79d19 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -56,7 +56,11 @@ jobs: key: mkdocs-cards-${{ github.ref }} path: .cache - name: Build Docs + if: github.event.pull_request.head.repo.fork == true run: python -m poetry run mkdocs build + - name: Build Docs with Insiders + if: github.event.pull_request.head.repo.fork == false + run: python -m poetry run mkdocs build --config-file mkdocs.insiders.yml - name: Zip docs run: python -m poetry run bash ./scripts/zip-docs.sh - uses: actions/upload-artifact@v2 diff --git a/mkdocs.insiders.yml b/mkdocs.insiders.yml new file mode 100644 index 00000000..9f2775ff --- /dev/null +++ b/mkdocs.insiders.yml @@ -0,0 +1,4 @@ +INHERIT: mkdocs.yml +plugins: + - search + - social diff --git a/mkdocs.yml b/mkdocs.yml index e5c5cef3..6dfd51d0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -30,9 +30,6 @@ edit_uri: '' google_analytics: - UA-205713594-2 - auto -plugins: -- search -- social nav: - SQLModel: index.md - features.md