Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image in Sphinx without html link

How can I simply prevent automatic link on images in a Sphinx/reStructuredText, which are using :scale: attribute? The documentation is exported as HTML, and I would like the image not to be clickable. I want reduce them in size for better document readability and it would be simpler to adjust the size with :scale: attribut rather than image editions.

like image 412
aflp91 Avatar asked May 10 '26 01:05

aflp91


1 Answers

The html_scaled_image_link configuration option can be used to globally turn on/off this behaviour.

Authors can override this for individual images with:

  • the :target: option and an URL, if the generic setting is False,
  • the :class: option with value no-scaled-link, if the generic setting is True (since Sphinx 3.0).
like image 178
G. Milde Avatar answered May 12 '26 16:05

G. Milde