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
The <img/> tag in html accepts a srcset to specify responsive image resolutions in websites (see https://html.com/attributes/img-srcset/). It would be great if the sphinx html builder accepted this as an option and copied the files to the build. eg:
.. image:: /images/my-image.png
:alt: Alt text
:srcset: /images/my-image.png, /images/my-image-2x.png 2.00x
The
<img/>
tag in html accepts asrcset
to specify responsive image resolutions in websites (see https://html.com/attributes/img-srcset/). It would be great if the sphinx html builder accepted this as an option and copied the files to the build. eg:would render as
and the images would be copied to
build/html/_images
Note that sphinx-gallery does this with a custom directive:
.. image-sg::
(https://sphinx-gallery.github.io/dev/gen_modules/sphinx_gallery.directives.html#classes) and we are about to do it for Matplotlib, but for the figure directive.The text was updated successfully, but these errors were encountered: