Skip to content

Commit 14a9788

Browse files
authored
🔧 Split MkDocs insiders build in CI to support building from PRs (#186)
1 parent dbcaa50 commit 14a9788

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ jobs:
5656
key: mkdocs-cards-${{ github.ref }}
5757
path: .cache
5858
- name: Build Docs
59+
if: github.event.pull_request.head.repo.fork == true
5960
run: python -m poetry run mkdocs build
61+
- name: Build Docs with Insiders
62+
if: github.event.pull_request.head.repo.fork == false
63+
run: python -m poetry run mkdocs build --config-file mkdocs.insiders.yml
6064
- name: Zip docs
6165
run: python -m poetry run bash ./scripts/zip-docs.sh
6266
- uses: actions/upload-artifact@v2

mkdocs.insiders.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
INHERIT: mkdocs.yml
2+
plugins:
3+
- search
4+
- social

mkdocs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ edit_uri: ''
3030
google_analytics:
3131
- UA-205713594-2
3232
- auto
33-
plugins:
34-
- search
35-
- social
3633
nav:
3734
- SQLModel: index.md
3835
- features.md

0 commit comments

Comments
 (0)