Create image galleries with Sphinx
Project description
Create image galleries with Sphinx. No external JS dependency.
Install
If you’re using a virtualenv, just:
pip install sphinx-galleria
Using
Add ‘sphinx_galleria’ in the list of extensions in your source.conf file.
Just use the galleria directive like this:
.. galleria:: imagefile1 imagefile2 images*.jpg
:galleria: (optional) Name of gallery - node level
:alt: (optional) A long description - image level
:title: (optional) Title of image - image level
:thumbsize: (optional) Image size (defaults to "100x100") - image level
:width: Width of image (in pixel or percentage or with unit, default auto) - node level
:height: (optional) Height of image (in pixel or with unit) - node level
:align: Align to 'right', 'left' or 'center' (default to center) - node level
:hide_title: Flag - hide title under image (not in dialog) - image level
:hide_alt: Flag - hide alternative text under image - image level
:no_transition: Flag - avoid transition effect - node level
:timer: (optional) Go to next image each timer seconds
:class: (optional) HTML class for gallery - node level
Image level options are same for all images defined by the directive. If you need separated descriptions and titles, just use the directive several times with the same galleria name. In this case, node level options must be defined only once.
Thumbnail size is in “WIDTHxHEIGHT” format, resulting image keeps ratio. Be careful with tumbnail size, the browser loads all thumbnails of a gallery when loading the page. It can take some time with really big galleries.
The first image of a gallery is displayed if javascript is not available on the browser.
Licensing
sphinx-galleria is under EUPL-1.2.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx_galleria-2.1.0.tar.gz
.
File metadata
- Download URL: sphinx_galleria-2.1.0.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b52b924843800ca6f522dde7ed1f41cf9a11b6b589ee98abe009fee0c6fae65b |
|
MD5 | f4cd102e83f0ef02d6da012d8e73fbaa |
|
BLAKE2b-256 | 081db6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0 |
File details
Details for the file sphinx_galleria-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: sphinx_galleria-2.1.0-py3-none-any.whl
- Upload date:
- Size: 37.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7db232c4a6b1049e73bf010e6c9789f61db7f2785e42304f35e904a4870df9 |
|
MD5 | e9d227cd450608f7297e7b51a969039d |
|
BLAKE2b-256 | 1aaf41fe1c06b59f68d94560148ad81dc185979a83f5c9f8a6964e2e015c6c55 |