Skip to main content

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

Live Demo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_panzoom_plugin-0.1.2.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

mkdocs_panzoom_plugin-0.1.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_panzoom_plugin-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ce7d96673906b7be045ca066f90e07c6b8dd122268726d66bb9255e16ffce505
MD5 f3a3cdf7ad4a74338e208431edbfe0f6
BLAKE2b-256 6845d8316a89ad4290e68fe8518113f91802627da03c244e0a8cfa30a7f7346b

See more details on using hashes here.

File details

Details for the file mkdocs_panzoom_plugin-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_panzoom_plugin-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd1d122e3867d27d0728b36ef1f55f275ee42e21cfca249264aecb211f7cf218
MD5 9d7413f5c63a97ec659bca1d78d6ff11
BLAKE2b-256 3daa0c72098a2e4a497995c74b715045b14ff6f30b47b8f06740dce8c0ecc3dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page