Metadata-Version: 2.1
Name: sphinx_galleria
Version: 2.1.0
Summary: Create image galleries with Sphinx
Keywords: sphinx,doc,theme
Author: kujiu, ptitgnu
Author-email: Nerv Project ASBL <contact@nerv-project.eu>
Maintainer: kujiu, ptitgnu
Maintainer-email: Nerv Project ASBL <contact@nerv-project.eu>
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
Classifier: Framework :: Sphinx
Classifier: Framework :: Sphinx :: Theme
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Framework :: Sphinx :: Theme
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Documentation
Classifier: Topic :: Software Development :: Documentation
Requires-Dist: Sphinx>=7.0.0
Requires-Dist: Pillow
Requires-Dist: Sphinx ; extra == "setup"
Requires-Dist: pytest-runner ; extra == "setup"
Requires-Dist: flake8 ; extra == "setup"
Requires-Dist: pylint ; extra == "setup"
Requires-Dist: babel ; extra == "setup"
Requires-Dist: flit ; extra == "setup"
Requires-Dist: pytest ; extra == "tests"
Requires-Dist: flake8 ; extra == "tests"
Requires-Dist: pylint ; extra == "tests"
Requires-Dist: pytest-cov ; extra == "tests"
Project-URL: changelog, https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria/raw/branch/main/CHANGES.rst
Project-URL: editor, https://www.nerv-project.eu
Project-URL: homepage, https://www.nerv-project.eu
Project-URL: issues, https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria/issues
Project-URL: repository, https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria
Provides-Extra: setup
Provides-Extra: tests

sphinx_galleria
###############

Create image galleries with Sphinx. No external JS
dependency.

Install
~~~~~~~

If you're using a virtualenv, just:

.. code:: bash

   pip install sphinx-galleria

.. important::

   Your webserver must deliver .mjs file with correct
   content type (`application/javascript`).

Using
~~~~~

Add `'sphinx_galleria'` in the list of extensions in
your `source.conf` file.

Just use the galleria directive like this:

.. code:: rst

   .. 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.

