diff --git a/infra/build-docs.sh b/infra/build-docs.sh index ef6f264..d35c0ec 100755 --- a/infra/build-docs.sh +++ b/infra/build-docs.sh @@ -13,6 +13,7 @@ build_pdf() { sphinx-build -b latex -d /docs/doctrees . /docs/_build/latexpdf cd /docs/_build/latexpdf # Run pdflatex twice to resolve cross-references, using batchmode for non-interactive build + rm -f /docs/_build/latexpdf/Graphistry.pdf pdflatex -file-line-error -interaction=nonstopmode Graphistry.tex || test -f /docs/_build/latexpdf/Graphistry.pdf pdflatex -file-line-error -interaction=nonstopmode Graphistry.tex || test -f /docs/_build/latexpdf/Graphistry.pdf }