Skip to content

Commit a5e7930

Browse files
committed
Use imgmath for pdf output
1 parent 389d9e9 commit a5e7930

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
if: ${{ env.GENERATE_PDF == 'true' }}
102102
run: |
103103
pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip
104-
make pyppeteer
104+
make SPHINXOPTS="-t pdf" pyppeteer
105105
mv _build/pyppeteer/*.pdf _build/dirhtml/${PDF_FILENAME}
106106
107107
# Stage all deployed assets in _gh-pages/ for simplicity, and to

content/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"sphinx_coderefinery_branding",
4040
]
4141

42+
43+
if 'pdf' in tags:
44+
# Use imgmath for PDF output
45+
extensions.append("sphinx.ext.imgmath")
46+
4247
# Settings for myst_nb:
4348
# https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution
4449
nb_execution_mode = "cache"

0 commit comments

Comments
 (0)