Empty print.html instead of deleting it.

This commit is contained in:
Andrew Morgan 2026-01-07 18:21:22 +00:00
parent 84ed97869b
commit 5aa26fd402

View file

@ -69,7 +69,11 @@ jobs:
run: |
MDBOOK_OUTPUT__HTML__SITE_URL="./" mdbook build
# Delete the print.html file as it can raise false positives during link checking.
rm -rf book/print.html
# Delete the contents of the print.html file, as it can raise false
# positives during link checking.
#
# We empty out the file, instead of deleting it, as doing so would
# just cause htmltest to complain that links to it were invalid.
echo "" > book/print.html
./htmltest book --conf docs/.htmltest.yml