Skip to main content

mkdocs-markgraf

MkDocs plugin that renders markgraf animations inside documentation pages.

Fenced ```markgraf blocks become an interactive Canvas2D player with a scrub bar, keyframe ticks, play/pause, and speed control. The bundled JS/CSS ships with the plugin — no CDN, no external dependencies at runtime.

Install

pip install mkdocs-markgraf

Use

mkdocs.yml:

plugins:
  - markgraf

Inside a page:

```markgraf
seed 1

scene v1 {
  + client: Client
  + api: API
  + db: Database
  + client -> api
  + api -> db
  client ~> api: GET /user/42
  api ~> db: SELECT
}

scene v2 {
  + cache: Cache
  - api -> db
  + api -> cache
  client ~> api: GET /user/42
  api ~> cache: HIT
}
```

Sizing

Constrain the embed via fence attributes:

```markgraf height=320
…
```

```markgraf width=420
…
```

```markgraf height=80svh
…
```

Values default to px; svh, vh, dvh, %, em, rem are accepted as explicit units. height clamps max-height on the canvas; width clamps max-width on the embed container.

Player controls

  • Click the canvas or press Space anywhere to toggle play/pause.
  • Click ticks on the scrub bar to jump between keyframes.
  • Only one embed plays at a time — starting one pauses the others.
  • The control bar is overlaid on the canvas and only shown on hover or focus.

Configuration

mkdocs.yml:

plugins:
  - markgraf:
      assets_subdir: assets/markgraf  # where to copy the bundled JS/CSS
      js_path: /path/to/markgraf-embed.js   # override the bundled JS
      css_path: /path/to/markgraf-embed.css # override the bundled CSS

License

MIT.

Metadata

Release files for mkdocs-markgraf 0.0.45

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-markgraf 0.0.45
File Size Uploaded Provenance Actions
mkdocs_markgraf-0.0.45.tar.gz 915.2 kB With provenance Details for mkdocs_markgraf-0.0.45.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-markgraf 0.0.45
File Interpreter ABI Platform Actions
mkdocs_markgraf-0.0.45-py3-none-any.whl Python 3 none any Details for mkdocs_markgraf-0.0.45-py3-none-any.whl

Total release size: 1.8 MB

Release files / mkdocs_markgraf-0.0.45.tar.gz

Download URL mkdocs_markgraf-0.0.45.tar.gz
Size 915.2 kB
Tags Source
SHA-256 checksum
How to use checksums
23b486e0628d9bd9f3bdc3ebce5cef0575206e07bc3a93f01e632583d5d97aef
BLAKE2b-256 checksum
How to use checksums
91244eceda0dca5f9447305f838e039926f3fbcfe67e73b790e64d4395bc99bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / mkdocs_markgraf-0.0.45-py3-none-any.whl

Download URL mkdocs_markgraf-0.0.45-py3-none-any.whl
Size 923.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ff2e229ed4181784db93c0d105a2ff0f7c166beb4e5dd32844fac37d5e4a110
BLAKE2b-256 checksum
How to use checksums
d23937e50e60daed663e123baa3dd89e6af3e8367eea7cbe4d11e4adba2428d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Security for mkdocs-markgraf 0.0.45

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mkdocs_markgraf-0.0.45.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page