sphinx_galleria
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.
Metadata
Release files for sphinx_galleria 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx_galleria-2.1.0.tar.gz | 35.5 kB | Without provenance | Details for sphinx_galleria-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_galleria-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for sphinx_galleria-2.1.0-py3-none-any.whl |
Total release size: 72.7 kB
Release files / sphinx_galleria-2.1.0.tar.gz
| Download URL | sphinx_galleria-2.1.0.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52b924843800ca6f522dde7ed1f41cf9a11b6b589ee98abe009fee0c6fae65b
|
|
BLAKE2b-256 checksum How to use checksums |
081db6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / sphinx_galleria-2.1.0-py3-none-any.whl
| Download URL | sphinx_galleria-2.1.0-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e7db232c4a6b1049e73bf010e6c9789f61db7f2785e42304f35e904a4870df9
|
|
BLAKE2b-256 checksum How to use checksums |
1aaf41fe1c06b59f68d94560148ad81dc185979a83f5c9f8a6964e2e015c6c55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for sphinx_galleria 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.