Create image galleries in Sphinx with Galleria
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Kujiu 03b3897d57
Fix position of prev and next buttons
1 year ago
locale Mobile and swipe support 1 year ago
static/sphinxgalleria Fix position of prev and next buttons 1 year ago
.gitignore Mobile and swipe support 1 year ago
.gitmodules Initial commit 1 year ago
CHANGES.rst Fix position of prev and next buttons 1 year ago
LICENSE Initial commit 1 year ago
LICENSE-de Initial commit 1 year ago
LICENSE-fr Initial commit 1 year ago
LICENSE-nl Initial commit 1 year ago
MANIFEST.in Mobile and swipe support 1 year ago
Makefile Mobile and swipe support 1 year ago
README.rst Use JPEG instead of PNG on thumbnails 1 year ago
VERSION Mobile and swipe support 1 year ago
__init__.py Thumb in initial image format 1 year ago
babel.cfg Fix: CSS issues, keyboard shortcuts, group galleries 1 year ago
collector.py Thumb in initial image format 1 year ago
directive.py Mobile and swipe support 1 year ago
pyproject.toml Mobile and swipe support 1 year ago
requirements.txt Mobile and swipe support 1 year ago
setup.cfg Mobile and swipe support 1 year ago

README.rst

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head>

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.

</html>