A Sphinx extension that adds a `.. image-thumbnail::` directive for embedding thumbnail images that link to full-size versions. Current version 1.0.1 (released 2024-11-14), maintained under the sphinx-contrib umbrella. Requires Python >=3.9 and Sphinx >=6.0.
pip install sphinxcontrib-imagesVerified import paths — ran on the pinned version, not inferred.
Add the extension to your Sphinx conf.py, then use the directive in reStructuredText.
Use `if builder.name == 'html':` conditional in conf.py to include only for HTML builds.
Use raw `.. image::` if you need alignment or classes.
Upgrade Python to 3.9+ and Sphinx to 6.0+, or pin to sphinxcontrib-images==0.8.6.