Name | sphinx_galleria JSON |
Version |
2.1.0
JSON |
| download |
home_page | None |
Summary | Create image galleries with Sphinx |
upload_time | 2023-08-17 20:15:47 |
maintainer | kujiu, ptitgnu |
docs_url | None |
author | kujiu, ptitgnu |
requires_python | >=3.8 |
license | None |
keywords |
sphinx
doc
theme
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "sphinx_galleria",
"maintainer": "kujiu, ptitgnu",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Nerv Project ASBL <contact@nerv-project.eu>",
"keywords": "sphinx,doc,theme",
"author": "kujiu, ptitgnu",
"author_email": "Nerv Project ASBL <contact@nerv-project.eu>",
"download_url": "https://files.pythonhosted.org/packages/08/1d/b6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0/sphinx_galleria-2.1.0.tar.gz",
"platform": null,
"description": "sphinx_galleria\n###############\n\nCreate image galleries with Sphinx. No external JS\ndependency.\n\nInstall\n~~~~~~~\n\nIf you're using a virtualenv, just:\n\n.. code:: bash\n\n pip install sphinx-galleria\n\n.. important::\n\n Your webserver must deliver .mjs file with correct\n content type (`application/javascript`).\n\nUsing\n~~~~~\n\nAdd `'sphinx_galleria'` in the list of extensions in\nyour `source.conf` file.\n\nJust use the galleria directive like this:\n\n.. code:: rst\n\n .. galleria:: imagefile1 imagefile2 images*.jpg\n :galleria: (optional) Name of gallery - node level\n :alt: (optional) A long description - image level\n :title: (optional) Title of image - image level\n :thumbsize: (optional) Image size (defaults to \"100x100\") - image level\n :width: Width of image (in pixel or percentage or with unit, default auto) - node level\n :height: (optional) Height of image (in pixel or with unit) - node level\n :align: Align to 'right', 'left' or 'center' (default to center) - node level\n :hide_title: Flag - hide title under image (not in dialog) - image level\n :hide_alt: Flag - hide alternative text under image - image level\n :no_transition: Flag - avoid transition effect - node level\n :timer: (optional) Go to next image each timer seconds\n :class: (optional) HTML class for gallery - node level\n\nImage level options are same for all images defined by\nthe directive. If you need separated descriptions and\ntitles, just use the directive several times with the\nsame galleria name. In this case, node level options\nmust be defined only once.\n\nThumbnail size is in \"WIDTHxHEIGHT\" format, resulting\nimage keeps ratio. Be careful with tumbnail size, the\nbrowser loads all thumbnails of a gallery when loading\nthe page. It can take some time with really big galleries.\n\nThe first image of a gallery is displayed if javascript\nis not available on the browser.\n\nLicensing\n~~~~~~~~~\n\nsphinx-galleria is under EUPL-1.2.\n",
"bugtrack_url": null,
"license": null,
"summary": "Create image galleries with Sphinx",
"version": "2.1.0",
"project_urls": {
"changelog": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria/raw/branch/main/CHANGES.rst",
"editor": "https://www.nerv-project.eu",
"homepage": "https://www.nerv-project.eu",
"issues": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria/issues",
"repository": "https://procrastinator.nerv-project.eu/nerv-project/sphinx_galleria"
},
"split_keywords": [
"sphinx",
"doc",
"theme"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1aaf41fe1c06b59f68d94560148ad81dc185979a83f5c9f8a6964e2e015c6c55",
"md5": "e9d227cd450608f7297e7b51a969039d",
"sha256": "0e7db232c4a6b1049e73bf010e6c9789f61db7f2785e42304f35e904a4870df9"
},
"downloads": -1,
"filename": "sphinx_galleria-2.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e9d227cd450608f7297e7b51a969039d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 37195,
"upload_time": "2023-08-17T20:15:45",
"upload_time_iso_8601": "2023-08-17T20:15:45.640975Z",
"url": "https://files.pythonhosted.org/packages/1a/af/41fe1c06b59f68d94560148ad81dc185979a83f5c9f8a6964e2e015c6c55/sphinx_galleria-2.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "081db6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0",
"md5": "f4cd102e83f0ef02d6da012d8e73fbaa",
"sha256": "b52b924843800ca6f522dde7ed1f41cf9a11b6b589ee98abe009fee0c6fae65b"
},
"downloads": -1,
"filename": "sphinx_galleria-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "f4cd102e83f0ef02d6da012d8e73fbaa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 35480,
"upload_time": "2023-08-17T20:15:47",
"upload_time_iso_8601": "2023-08-17T20:15:47.779262Z",
"url": "https://files.pythonhosted.org/packages/08/1d/b6ea990ca7e8175f68908d713715cfdfcf2b3443663a250dfe23a70367e0/sphinx_galleria-2.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-17 20:15:47",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sphinx_galleria"
}