MkDocs plugin supports image lightbox with GLightbox.
Project description
MkDocs GLightbox
A MkDocs plugin supports image lightbox with GLightbox.
GLightbox is a pure javascript lightbox library with mobile support.
Live demo with mkdocs-material theme.
Dependency
- Python Package
- beautifulsoup4==4.11.1
- GLightbox javascript file and css file
- GLightbox==3.2.0
Usage
-
Install plugin from pypi
pip install mkdocs-glightbox
-
Add
glightbox
plugin in to your mkdocs.yml plugins sections:plugins: - glightbox
-
You may customize the plugin by passing options in mkdocs.yml:
plugins: - glightbox: touchNavigation: true loop: false effect: zoom width: 100% height: auto zoomable: true draggable: true
Option Default Description touchNavigation true Enable or disable the touch navigation (swipe). loop false Loop slides on end. effect zoom Name of the effect on lightbox open. (zoom, fade, none) width 100% Default width for inline elements and iframes. You can use any unit for example 90% or 100vw for full width. height auto Default height for inline elements and iframes. You can use any unit for example 90%, 100vh or auto. zoomable true Enable or disable zoomable images. draggable true Enable or disable mouse drag to go prev and next slide. Check more options information on GLightbox Docs.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mkdocs-glightbox-0.1.7.tar.gz
(23.5 kB
view details)
File details
Details for the file mkdocs-glightbox-0.1.7.tar.gz
.
File metadata
- Download URL: mkdocs-glightbox-0.1.7.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e86e107349eacfd17a4f25673482bd2f033b21c272beaffae430b2c9c5aead6 |
|
MD5 | 57d4a6b294bddadbf51c0c438c984cb8 |
|
BLAKE2b-256 | bbbb5e5a02acda5a44e81de352f036a64024d7c6e46a9cd85ea4fae8db11f4ae |