Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

spinus/sphinxcontrib-images

Repository files navigation

I'm not maintaining this repo and extension anymore, good people from sphinx-contrib took care of this.

Please use https://github.com/sphinx-contrib/images

sphinxcontrib-images

sphinxcontrib-images (formerly sphinxcontrib-fancybox).

Easy sphinx thumbnails (focused on HTML).

Features

  • Show thumbnails instead of full size images inside documentation (HTML).
  • Ability to zoom/enlarge picture using LightBox2 (HTML).
  • Ability to group pictures
  • Download remote pictures and keep it in cache (if requested)
  • Support for other formats (latex, epub, ... - fallback to image directive)
  • Easy to extend (add own backend in only few lines of code)
    • Add other HTML "preview" solution than LightBox2
    • Add better support to non-HTML outputs
    • Preprocess images

TODO

  • Make proper thumbnails (scale down images)

How to install?

Instalation through pip:

pip install sphinxcontrib-images

or through the GitHub:

pip install git+https://github.com/spinus/sphinxcontrib-images

Next, you have to add extension to conf.py in your sphinx project.

extensions = [
          …
          'sphinxcontrib.images',
          …
          ]

How to use it?

Example:

.. thumbnail:: picture.png

You can also override default image directive provided by sphinx. Check the documentation for all configuration options.

Questions and suggestions

If you have any suggstions, patches, problems - please use GitHub Issues.

About

sphinxcontrib-images extension (moved to https://github.com/sphinx-contrib/images)

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 13

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy