Skip to content

PDF cannot be built due to Zenodo SVGs #17681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
QuLogic opened this issue Jun 18, 2020 · 2 comments · Fixed by #17693
Closed

PDF cannot be built due to Zenodo SVGs #17681

QuLogic opened this issue Jun 18, 2020 · 2 comments · Fixed by #17693
Milestone

Comments

@QuLogic
Copy link
Member

QuLogic commented Jun 18, 2020

Due to #17491, it produces warnings like:

matplotlib/doc/citing.rst:: WARNING: a suitable image for latex builder not found: ['image/svg+xml'] (https://zenodo.org/badge/DOI/10.5281/zenodo.592536.svg)
matplotlib/doc/citing.rst:: WARNING: a suitable image for latex builder not found: ['image/svg+xml'] (https://zenodo.org/badge/DOI/10.5281/zenodo.3898017.svg)

We may need to enable an extension to make this work.

@QuLogic QuLogic added this to the v3.3.0 milestone Jun 18, 2020
@QuLogic
Copy link
Member Author

QuLogic commented Jun 19, 2020

In Sphinx, there's a builtin sphinx.ext.imgconverter, but it converts to raster. I suggest we use the related sphinxcontrib-svg2pdfconverter, which runs Inkscape to convert to PDF, since we already require Inkscape for our own purposes.

@QuLogic
Copy link
Member Author

QuLogic commented Jun 19, 2020

For 3.3.0rc1 docs, I used the latter, though I had to pull from master as the current release does not support Inkscape 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant