Reading https://jupyterbook.org/advanced/pdf.html, pyppeteer and installing tex are the two listed methods.
Installing texlive takes a fair amount of time and space.
It's also possible to build with the ReadTheDocs container (which includes e.g. texlive).
Here's an example Dockerfile (that extends FROM readthedocs/build:latest) and a Makefile excerpt for building PDFs from latex generated by sphinx:
https://gist.github.com/westurner/9827e4d2665d08832ad37343085721d3
"How to build with the ReadTheDocs Docker container"
https://github.com/ammaraskar/sphinx-action/issues/9
oooh that's a pretty cool use-case! Thanks for sharing.
Thanks @westurner (cc: @AakashGfude)
Most helpful comment
Thanks @westurner (cc: @AakashGfude)