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.ioEnableBlockDiag
- Enable BlockDiag (and the related Diagrams), default: TrueEnablebpmn
- Enable BPMN, default: TrueEnableExcalidraw
- Enable Excalidraw, default: TrueEnableMermaid
- Enable Mermaid, default: TrueDownloadImages
- Download diagrams from kroki as static assets instead of just creating kroki links, default: FalseDownloadDir
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mkdocs-kroki-plugin-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6179b4d084acb4dce9ba639ee0bb103477b18d0d54f12e4d5510b9adc1425b3 |
|
MD5 | f09be8229d5d1bcfcfafb61ad1f53151 |
|
BLAKE2b-256 | e652ba6d9ab6ae18383ba715e9be245cbbfbf53779f6ba8c8f820a12ca319488 |
Close
Hashes for mkdocs_kroki_plugin-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af511f6c4acef1f5d56ed7ac2aff8ad89c5c2ab286d2c58bc168ec2b5e43634 |
|
MD5 | dfef23a6d6366a55f7cc9ccdff9a1c97 |
|
BLAKE2b-256 | 35fb35c3a215cb35e953983862305a92fa4bf5336433fcb269400dd767d594f8 |