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
|
|
|
|
|
2023-11-18 21:04:42 +00:00
|
|
|
lake -R -Kdoc=on update
|
|
|
|
lake -R -Kdoc=on build Std:docs
|