Skip to main content

Excalidraw drawings in mkdocs

Project description

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)

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.

  1. Create an excalidraw drawing and save the file (I recommend using the vscode extension)
  2. Add a reference to it in your markdown file as you would for an image
![fig_name](drawings/test.excalidraw)
  1. Thats it , the extension renders it as an svg in your browser

Add Lightbox (Click to open fullscreen)

Simply install and setup mkdocs-glightbox as descibed here

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_excalidraw-0.4.2.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_excalidraw-0.4.2-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file mkdocs_excalidraw-0.4.2.tar.gz.

File metadata

  • Download URL: mkdocs_excalidraw-0.4.2.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for mkdocs_excalidraw-0.4.2.tar.gz
Algorithm Hash digest
SHA256 0ff44fbb158eed815322a6c46eaefba4a25566f4117912cb997d21cc80a499d7
MD5 c280ce37266af78496f0d1f652dfe596
BLAKE2b-256 cec8b76f69da150ef2be10dc617eac55941377139e77435ed0ea83368cc43210

See more details on using hashes here.

File details

Details for the file mkdocs_excalidraw-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_excalidraw-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure

File hashes

Hashes for mkdocs_excalidraw-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee35fad4827ed36f0053cee280c369c01936b10027f8ec6204f365773519bed8
MD5 02664099c718cdbd3c837b68cacddc73
BLAKE2b-256 ff41e7e74e1f9c9480145abd835720ae9b8918d5eb161f78f78475934b9ed123

See more details on using hashes here.

Supported by

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