Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
if: ${{ env.GENERATE_PDF == 'true' }}
run: |
pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip
make pyppeteer
make SPHINXOPTS="-t pdf" pyppeteer
mv _build/pyppeteer/*.pdf _build/dirhtml/${PDF_FILENAME}

# Stage all deployed assets in _gh-pages/ for simplicity, and to
Expand Down
5 changes: 5 additions & 0 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"sphinx_coderefinery_branding",
]


if 'pdf' in tags:
# Use imgmath for PDF output
extensions.append("sphinx.ext.imgmath")

# Settings for myst_nb:
# https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution
nb_execution_mode = "cache"
Expand Down