mirror of
https://github.com/PaiGramTeam/sqlmodel.git
synced 2024-11-24 09:15:26 +00:00
🔧 Split MkDocs insiders build in CI to support building from PRs (#186)
This commit is contained in:
parent
dbcaa50c69
commit
14a9788eb1
4
.github/workflows/build-docs.yml
vendored
4
.github/workflows/build-docs.yml
vendored
@ -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
|
||||
|
4
mkdocs.insiders.yml
Normal file
4
mkdocs.insiders.yml
Normal file
@ -0,0 +1,4 @@
|
||||
INHERIT: mkdocs.yml
|
||||
plugins:
|
||||
- search
|
||||
- social
|
@ -30,9 +30,6 @@ edit_uri: ''
|
||||
google_analytics:
|
||||
- UA-205713594-2
|
||||
- auto
|
||||
plugins:
|
||||
- search
|
||||
- social
|
||||
nav:
|
||||
- SQLModel: index.md
|
||||
- features.md
|
||||
|
Loading…
Reference in New Issue
Block a user