Skip to content

Commit 93626a1

Browse files
author
William DeMeo
committed
bugfix: generate site content *before* building!
1 parent 03919cf commit 93626a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ jobs:
6868
extra_nix_config: |
6969
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
7070
substituters = https://cache.iog.io https://cache.nixos.org/
71-
- name: Build MkDocs site
71+
- name: Generate and Build MkDocs site
7272
run: |
73-
# !!! change to mkdocs src directory first !!!
74-
nix develop .#markdown --command "cd _build/mkdocs/src && mkdocs build --site-dir ../../../site"
73+
# 1. Explicitly use bash -c to run a sequence of commands.
74+
# 2. Run the python build script to generate the mkdocs source files.
75+
# 3. cd into the generated directory and run mkdocs build.
76+
nix develop .#markdown --command bash -c "python ./scripts/mkdocs/build.py --run-agda && cd _build/mkdocs/src && mkdocs build --site-dir ../../../site"
7577
# --site-dir places output in root for upload step
7678
- name: Upload MkDocs site artifact
7779
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)