Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.2k
gh-139588: Docs: PDF: convert SVG to PDF using sphinxcontrib.rsvgconverter#140342
gh-139588: Docs: PDF: convert SVG to PDF using sphinxcontrib.rsvgconverter#140342m-aciek wants to merge 1 commit intopython:mainfrom
Conversation
hugovk commentedOct 20, 2025
This will install and use the extension forall builds, including HTML and others not building PDFs. Is that intentional? |
m-aciek commentedOct 20, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The extension is quite lightweight itself, 28.95 KB [1], and skips converting for builders other that LaTeX. I think that it's not worth to introduce handling of optional dependencies for docs builds because of it. [1] |
AA-Turner commentedOct 20, 2025
I'm also unsure about using another third-party extension. Could we not just use the latex customisation features to include the required LaTeX packages? A |
m-aciek commentedOct 20, 2025
We can include |
AA-Turner commentedOct 20, 2025
involves bringing in a third-party dependency, who's code we haven't audited, etc. I will point out that until recently, no one had noticed the problem with this particular SVG file, which was added some months ago! A |
AA-Turner commentedOct 20, 2025
For the avoidance of doubt I'll close this PR, it isn't the right solution. A |
m-aciek commentedOct 28, 2025
For what it's worth, in PL translation project we build PDFs for stable branches only, the SVG/PDF issue impacts main branch only. |
Uh oh!
There was an error while loading.Please reload this page.
#133591 introduced an SVG into docs, which is not handled by LaTeX (used for PDF build) natively. This fixes the PDF build error. Usesa recommended approach.
(Better) alternative to#139635.
Render:
📚 Documentation preview 📚:https://cpython-previews--140342.org.readthedocs.build/