Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ fi
# Disable an error message due to a non-blocking bug. See Zulip
MATHLIB_NO_CACHE_ON_UPDATE=1 ~/.elan/bin/lake update $NAME

# Delete the markers of the HTML pass of `doc-gen4`, so that the pass runs on
# each build. The `:docs` facet writes a marker `<target>.docs_built` in
# `.lake/build/doc-data/`, and Lake skips the pass while the marker is up to
# date. The cache restores the markers but not the HTML of the project.
# Before leanprover/doc-gen4#418, a marker also stays up to date after a change
# to a Lean file. The pass reads the cached database and takes about one minute
# for 3000 modules.
rm -f .lake/build/doc-data/*.docs_built

# Build the docs
~/.elan/bin/lake build $DOCS_FACETS

Expand Down