You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using dynamically rendered images from online services like Shields.io in my documentation. This works fine in the HTML version created locally and on RTD. However, these images are not visible in the also generated PDF file.
According to Builders, the latex builder only supports pdf, png and jpg formats. So I'm using SVG images in the HTML version and PNG images in the latex version of the documentation:
.. # Shield for a GitHub repository.. |SHIELD:svg:GH-Logo| image:: https://img.shields.io/badge/-VLSI--EDA/PoC-323131.svg?style=flat&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABKVBMVEX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%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vz5u6BNjbsAplvsbVm%2FqAQGFOMb%2B1rTULZJPnsqf%2FMC2kv2bUOYZ%2BR3lLzPr0ehPWbszITmVsn3GCqRWtVFbKZC%2Fvz45tOj1EBlBgPOCUUpOXDiIMF4%2Bzc98G%2FDQNrY1tW9Bc26v%2Fowhof6D6AkqSgsdGGuAAAAAElFTkSuQmCC :target: https://www.github.com/VLSI-EDA/PoC :alt: Source Code on GitHub
.. only:: html
|SHIELD:svg:GH-Logo|
.. only:: latex
|SHIELD:png:GH-Logo|
To show both images, here are the images as markdown image code:
SVG:
PNG:
Local images from /_static/... work also as expected. The documentation is build with -b html or -b latex respectively.
I'm using dynamically rendered images from online services like Shields.io in my documentation. This works fine in the HTML version created locally and on RTD. However, these images are not visible in the also generated PDF file.
According to Builders, the latex builder only supports pdf, png and jpg formats. So I'm using SVG images in the HTML version and PNG images in the latex version of the documentation:
To show both images, here are the images as markdown image code:
Local images from
/_static/...
work also as expected. The documentation is build with-b html
or-b latex
respectively.According to the Sphinx (http://www.sphinx-doc.org/en/stable/rest.html?highlight=image#images) and Docutils (http://docutils.sourceforge.net/docs/ref/rst/directives.html#image) documentation, there are no restrictions for images sources and certain builders.
Are images from web URLs not supported for the latex builder?
Edit:
As far as I can see, only the HTML builder complains about a non-local image source (web URL).
The text was updated successfully, but these errors were encountered: