Mkdocs Excalidraw
✨ A simple mkdocs plugin to easily embed your excalidraw drawings into your docs
See it in action here
🎯 Features
- Embed your drawings as you would an image by converting your excalidraw drawings to svg on the fly
- Dark mode compatibility for mkdocs and mkdocs-material themes
- Lightbox support when used with mkdocs-glightbox (fullscreen on click)
- Select which frame of the drawing to display
📦 Installation
Install the package
pip install mkdocs-excalidraw
Add it to your mkdocs.yaml
site_name: MkDocs Excalidraw
plugins:
- excalidraw
- glightbox # if you want lightbox (see below)
🚀 Usage
You can use this project's docs as an example , lets break down how we do it.
- Create an excalidraw drawing and save the file (I recommend using the vscode extension)
- Add a reference to it in your markdown file as you would for an image

- Thats it , the extension renders it as an svg in your browser
🧩 Integrations
🌓 Dynamic Theme
This extensions supports dynamic light/dark theme with the following mkdocs themes:
- material-mkdocs
- mkdocs (base)
This means that , when you switch the the between light and dark , the excalidraw drawings will change their theme accordingly
🖥 GLightbox - fullscreen and slideshow
Simply install and setup mkdocs-glightbox as descibed here. once done your mkdocs drawing will be clickable , and available in the slideshow of the page.
🪟 Frame based rendering
Excalidraw introduced the notion of frame. You can select a part of your drawing to be part of a frame ,a drawing can hold several frames. But an object can only belong to one frame.
to render not the whole drawing but a specific frame , you can do the following :

This feature pairs nicely with glightbox (just above) and enables you to turn an mkdocs page into a slideshow !
🫶 Contributing
This projects welcomes contribution ! But contribution does not have to be code. Here are great ways to help this project :
- Fill in a detailed bug report (with console logs , screenshots and execution context)
- Make a feature requests
- Make a PR for the documentaion to impprove it or translating it
- Make a code PR but please link it to an issue
And if you have a few seconds to star this repo it would really help us reach more people ! We hope you like this plugin at least as much as we loved making it
Metadata
Release files for mkdocs-excalidraw 0.6.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_excalidraw-0.6.4.tar.gz | 2.5 MB | Without provenance | Details for mkdocs_excalidraw-0.6.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_excalidraw-0.6.4-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_excalidraw-0.6.4-py3-none-any.whl |
Total release size: 5.0 MB
Release files / mkdocs_excalidraw-0.6.4.tar.gz
| Download URL | mkdocs_excalidraw-0.6.4.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d0727462c51db165a4010a54f0578e5c9586d4f7a5c5247053b5e7fb620cd84
|
|
BLAKE2b-256 checksum How to use checksums |
b104e1000cb7c2a81e1cba608da61fbe35d65938711a9e5451257f50afe36979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.16 Linux/7.0.0-1019-azure
|
Release files / mkdocs_excalidraw-0.6.4-py3-none-any.whl
| Download URL | mkdocs_excalidraw-0.6.4-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ed4eaad75885664abf59a9e4e18b927e0866a8b630354197aec89163a2b96ca
|
|
BLAKE2b-256 checksum How to use checksums |
6e20a3b10e6b8dd3c34a75ca5c20a2dc14784deb355cde18e589b849b16dac69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.12.16 Linux/7.0.0-1019-azure
|
Security for mkdocs-excalidraw 0.6.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.