fix: better scripting to allow folks to make teh html only

This commit is contained in:
silver 2024-05-13 23:35:27 +01:00
parent 9882340b6d
commit d4869448fb
Signed by: silver
GPG key ID: 54E2C71918E93B74
4 changed files with 103 additions and 34 deletions

View file

@ -2,6 +2,9 @@
cd Committee
# cleanup the last run (if there was one)
rm -rf _Handovers_html
# copy in teh config for this folder
cp ../_scripts/md_toml/_Handovers.md.toml ./.md.toml
@ -10,6 +13,11 @@ cargo-bfom
## cleanup
rm -f .md.toml
# if the user only wants teh html tehn early return
if [[ $1 == "html" ]]; then
exit 0;
fi
# recursively parse _Handovers_html use wkhtmltopdf to convert to pdf
cd _Handovers_html
@ -36,7 +44,7 @@ for d in */ ; do
echo "$out_folder/$stripped.pdf"
# convert teh html to pdf
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$out_folder/$stripped.pdf" 2> ./tmp.txt
wkhtmltopdf -q --enable-local-file-access --no-stop-slow-scripts "$stripped.html" "$out_folder/$stripped.pdf" 2>> ../errors.log &
fi
done
done