Skip to main content

MkDocs plugin for Kroki-Diagrams

Project description

mkdocs-kroki-plugin

This is a MkDocs plugin to embed Kroki-Diagrams into your documentation.

Setup

Install the plugin using pip:

pip install mkdocs-kroki-plugin

Activate the plugin in mkdocs.yml:

plugins:
  ...
  - kroki:

Config

  • ServerURL - URL of your kroki-Server, default: https://kroki.io
  • EnableBlockDiag - Enable BlockDiag (and the related Diagrams), default: True
  • Enablebpmn - Enable BPMN, default: True
  • EnableExcalidraw - Enable Excalidraw, default: True
  • EnableMermaid - Enable Mermaid, default: True
  • DownloadImages - Download diagrams from kroki as static assets instead of just creating kroki links, default: False
  • DownloadDir - The asset directory to place downloaded svg images in, default: images/kroki_generated

Usage

Use code-fences with a tag of kroki-<Module> to replace the code with the wanted diagram.

Example for BlockDiag:

```kroki-blockdiag
blockdiag {
  blockdiag -> generates -> "block-diagrams";
  blockdiag -> is -> "very easy!";

  blockdiag [color = "greenyellow"];
  "block-diagrams" [color = "pink"];
  "very easy!" [color = "orange"];
}
```

See Also

Diagram examples can be found here.

More information about installing a self-manged Kroki-Service here.

More Plugins for MkDocs can be found here

Pre-Release-Versions

Install the newest pre-release version using pip:

pip install -i https://test.pypi.org/simple/ mkdocs-kroki-plugin

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-kroki-plugin-0.2.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mkdocs_kroki_plugin-0.2.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-kroki-plugin-0.2.1.tar.gz.

File metadata

  • Download URL: mkdocs-kroki-plugin-0.2.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mkdocs-kroki-plugin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f842c625379de521ed156d3296944ed21596acec59f2f1820d4614db7a2aad0a
MD5 dc7c0e2b9ef9912f84db4440cb7fdfd3
BLAKE2b-256 1a9df3f9801bcecdd780592a5a3d2bcf969664e64b250afbbb879c38bd064207

See more details on using hashes here.

File details

Details for the file mkdocs_kroki_plugin-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_kroki_plugin-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mkdocs_kroki_plugin-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8712b57f961f6b94c019a29a55f30d9e7067bc3fbeb8e7b2c8fbd82ab2144c50
MD5 ac926ba15a04017741808d4475beac5a
BLAKE2b-256 7ce55b5b6cacb1991f1abc931d1b00c2e0b95e592a4ce288ca6b84ccb62875b9

See more details on using hashes here.

Supported by

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