]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🔧 Split MkDocs insiders build in CI to support building from PRs (#186)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 13 Dec 2021 10:47:07 +0000 (11:47 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Dec 2021 10:47:07 +0000 (11:47 +0100)
.github/workflows/build-docs.yml
mkdocs.insiders.yml [new file with mode: 0644]
mkdocs.yml

index 31b799225c4780508da492409e8dc63cd0f88437..72a79d19f7b1652356059010901934d5f79fc66a 100644 (file)
@@ -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 (file)
index 0000000..9f2775f
--- /dev/null
@@ -0,0 +1,4 @@
+INHERIT: mkdocs.yml
+plugins:
+  - search
+  - social
index e5c5cef342f89df291064c9f88ba8b35ff976ed2..6dfd51d05703ba81078dd286e28bdf423500d615 100644 (file)
@@ -30,9 +30,6 @@ edit_uri: ''
 google_analytics:
     - UA-205713594-2
     - auto
-plugins:
-- search
-- social
 nav:
   - SQLModel: index.md
   - features.md