From 14a9788eb1bf444b9d15f69c3504891e4099914d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 13 Dec 2021 11:47:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Split=20MkDocs=20insiders=20buil?= =?UTF-8?q?d=20in=20CI=20to=20support=20building=20from=20PRs=20(#186)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docs.yml | 4 ++++ mkdocs.insiders.yml | 4 ++++ mkdocs.yml | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 mkdocs.insiders.yml diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 31b7992..72a79d1 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 0000000..9f2775f --- /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 e5c5cef..6dfd51d 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