bookshelf-doc/test_docs.sh

14 lines
340 B
Bash
Raw Normal View History

2023-03-11 16:48:27 +00:00
# Arguments:
# $1 : path to std4 from working directory
# $2 : path to doc-gen4 from working directory
set -e
set -x
# generate the docs
cd "$1"
sed -i "s|from git \"https://github.com/leanprover/doc-gen4\" @ \"main\"| from \"..\" / \"doc-gen4\" with NameMap.empty|" lakefile.lean
lake -R -Kdoc=on update
lake -R -Kdoc=on build Std:docs