MkDocs Plugin to enable pan & zoom on images and mermaid diagrams
Project description
Panzoom for MkDocs
This plugin makes use of the panzoom (LICENCE) library by Andrei Kashcha
Setup
pip install mkdocs-panzoom-plugin
Add it to your mkdocs.yml
:
plugins:
- search
- panzoom
[!WARNING] Make sure to define the
site_url
otherwise it won't work!Example:
site_url: https://playg0n.github.io/mkdocs-panzoom/
Usage
Examples and usage are available in the docs.
Config
Mermaid
This enables panzoom on mermaid diagrams.
plugins:
- panzoom:
mermaid: true # default true
Images
This enables panzoom on images.
plugins:
- panzoom:
images: true # default true
Exclude Pages
plugins:
- panzoom:
exclude:
- Path/to/page.md
Enable Fullscreen
[!WARNING] This is still in development!
plugins:
- panzoom:
full_screen: True # default False
Credits
The structure and some parts are from the enumerate-headings-plugin (LICENCE)
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
Built Distribution
File details
Details for the file mkdocs_panzoom_plugin-0.1.2.tar.gz
.
File metadata
- Download URL: mkdocs_panzoom_plugin-0.1.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7d96673906b7be045ca066f90e07c6b8dd122268726d66bb9255e16ffce505 |
|
MD5 | f3a3cdf7ad4a74338e208431edbfe0f6 |
|
BLAKE2b-256 | 6845d8316a89ad4290e68fe8518113f91802627da03c244e0a8cfa30a7f7346b |
File details
Details for the file mkdocs_panzoom_plugin-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_panzoom_plugin-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd1d122e3867d27d0728b36ef1f55f275ee42e21cfca249264aecb211f7cf218 |
|
MD5 | 9d7413f5c63a97ec659bca1d78d6ff11 |
|
BLAKE2b-256 | 3daa0c72098a2e4a497995c74b715045b14ff6f30b47b8f06740dce8c0ecc3dc |