Skip to content

Commit 7cadca1

Browse files
committed
Allow caching for images in subdirectories.
Also enable HTML output.
1 parent a4f5265 commit 7cadca1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

build.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,11 @@ do_pdf() {
744744
cp *.upa "${SOURCE_DIR}" 2>/dev/null
745745
cp *.upb "${SOURCE_DIR}" 2>/dev/null
746746
# Copy converted images so they can be cached as well.
747-
cp *.convert.pdf "${SOURCE_DIR}" 2>/dev/null
748-
cp *.mermaid.pdf "${SOURCE_DIR}" 2>/dev/null
749-
cp *.aasvg.pdf "${SOURCE_DIR}" 2>/dev/null
747+
find . -type f \( \
748+
-name "*.convert.pdf" -o \
749+
-name "*.mermaid.pdf" -o \
750+
-name "*.aasvg.pdf" \
751+
\) -exec cp --parents {} "${SOURCE_DIR}" \; 2>/dev/null
750752
echo "Elapsed time: $(($end-$start)) seconds"
751753
# Write any LaTeX errors to stderr.
752754
>&2 grep -A 5 "! " "${logfile}"
@@ -878,6 +880,11 @@ if [ -n "${PDF_OUTPUT}" ]; then
878880
fi
879881
fi
880882

883+
# Generate the html output
884+
if [ -n "${HTML_OUTPUT}" ]; then
885+
do_html "${BUILD_DIR}/${INPUT_FILE}" "${SOURCE_DIR}/${HTML_OUTPUT}" "${CROSSREF_TYPE}"
886+
fi
887+
881888
# Generate the docx output
882889
if [ -n "${DOCX_OUTPUT}" ]; then
883890
do_docx "${BUILD_DIR}/${INPUT_FILE}" "${SOURCE_DIR}/${DOCX_OUTPUT}"

0 commit comments

Comments
 (0)