furnace/res/docpdf/make-doc-html.sh

26 lines
439 B
Bash
Raw Normal View History

2023-09-19 06:49:07 +00:00
#!/bin/bash
echo "compiling Furnace doc (HTML)..."
2023-09-19 21:44:36 +00:00
if [ -e htmldoc ]; then
rm -r htmldoc
fi
2023-09-19 06:49:07 +00:00
if [ ! -e .venv ]; then
python3 -m virtualenv .venv || exit 1
fi
source .venv/bin/activate
if [ ! -e .venv/req_installed ]; then
pip install -r requirements.txt || exit 1
touch .venv/req_installed
fi
python3 make_htmldoc.py
2023-09-19 21:44:36 +00:00
echo "copying assets..."
for i in `find ../../doc -name "*.png"`; do
cp "$i" "htmldoc${i#../../doc}"
done