sphinxcontrib-images (formerly sphinxcontrib-fancybox <https://pypi.python.org/pypi/sphinxcontrib-fancybox>
_).
Easy thumbnails in Sphinx documentation (focused on HTML).
Documentation <https://sphinxcontrib-images.readthedocs.io>
_Repository (GitHub) <https://github.com/sphinx-contrib/images/>
_PyPI <https://pypi.python.org/pypi/sphinxcontrib-images/>
_GitHub actions <https://github.com/sphinx-contrib/images/actions/workflows/ci.yml>
_
.. image:: https://github.com/sphinx-contrib/images/actions/workflows/ci.yml/badge.svg :target: https://github.com/sphinx-contrib/images/actions/workflows/ci.yml :alt: GitHub Actions
Easy to extend (add own backend in only few lines of code)
TODO ^^^^
Instalation through pip: ::
pip install sphinxcontrib-images
or through the GitHub: ::
pip install git+https://github.com/sphinx-contrib/images
Next, you have to add extension to conf.py
in your Sphinx project. ::
extensions = [
…
'sphinxcontrib.images',
…
]
Example: ::
.. thumbnail:: picture.png
You can also override the default image
directive provided by Sphinx.
Check the documentation for all configuration options.
If you have any suggstions, patches, problems - please use
GitHub Issues <https://github.com/sphinx-contrib/images/issues>
_.