canonical / sphinx-docs-starter-pack

A documentation starter-pack
https://canonical-starter-pack.readthedocs-hosted.com/
Other
15 stars 37 forks source link

Adds required packages for SVG support for PDF generation #272

Closed SecondSkoll closed 4 weeks ago

SecondSkoll commented 1 month ago

SVG files used in -- image:: directives currently cause an error in PDF generation.

This is due to how LaTeX handles SVGs and how it internally uses a different implementation for SVG files. This PR adds the most lightweight option to have SVG files pre-render as PDFs for inclusion in PDF files using sphinxcontrib-svg2pdfconverter.