MkDocs Kroki Plugin

1.6.0 · active · verified Thu Apr 16

mkdocs-kroki-plugin is an MkDocs plugin designed to embed Kroki-Diagrams directly into your documentation. It is currently at version 1.6.0 and maintains an active development cycle, releasing new features, bug fixes, and improvements frequently, as seen in its recent series of minor and patch releases.

Common errors

Warnings

Install

Imports

Quickstart

Add `kroki` to your `mkdocs.yml` plugins section and use fenced code blocks with `kroki-<diagram_type>` to embed diagrams in your Markdown files.

# mkdocs.yml
site_name: My Docs with Kroki

plugins:
  - kroki:
      server_url: https://kroki.io # Optional, default is https://kroki.io

# docs/index.md
# Example BlockDiag diagram
```kroki-blockdiag
blockdiag {
  blockdiag -> generates -> "block-diagrams";
  blockdiag -> is -> "very easy!";
  blockdiag [color = "greenyellow"];
  "block-diagrams" [color = "pink"];
  "very easy!" [color = "orange"];
}
```

# To run:
# mkdocs serve

view raw JSON →