imagehyperlinkpython-sphinxrestructuredtext

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.


Solution

  • 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: