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.
pip install mkdocs-kroki-pluginVerified import paths — ran on the pinned version, not inferred.
Add `kroki` to your `mkdocs.yml` plugins section and use fenced code blocks with `kroki-<diagram_type>` to embed diagrams in your Markdown files.
Update your `mkdocs.yml` configuration to use `snake_case` for options and remove any deprecated settings. Refer to the plugin's README for the latest configuration schema.
Evaluate ProperDocs as a potential long-term solution for your documentation setup if you encounter complex upgrade paths or specific feature needs not met by vanilla MkDocs and its plugins.
Ensure `http_method` is set to `POST` and `tag_format` is `img` in your plugin configuration when using `styles_light` or `styles_dark` for optimal theme integration.
Upgrade to `mkdocs-kroki-plugin` version 1.6.0 or newer to ensure all diagrams are correctly parsed and rendered, even when preceded by code blocks with unusual attributes.
Change the default port for either your local Kroki Docker instance or `mkdocs serve` (e.g., `mkdocs serve -a 0.0.0.0:8001`). Configure `server_url` in `mkdocs.yml` to point to the correct Kroki server address.
Upgrade `mkdocs-kroki-plugin` to the latest version. If using `mkdocs-techdocs-core`, ensure it's also updated. Check for configuration regarding `tag_format` (default `img` is usually more compatible than `object` or `svg` in some environments) and `http_method: POST` for downloading images.
Verify the plugin is correctly listed under `plugins:` in `mkdocs.yml`. Check that your diagram syntax is valid for the specified Kroki type. Ensure the `server_url` is correct and reachable (default is `https://kroki.io`). Upgrade to the latest plugin version to address parsing fixes.
Update your `mkdocs.yml` to use the new snake_case configuration keys (e.g., `server_url` instead of `ServerURL`) and remove any deprecated configuration options. Refer to the plugin's documentation for the updated config schema.
Increase the `request_timeout` option in your `mkdocs.yml` plugin configuration (e.g., `request_timeout: 60`). `server_url: !ENV [KROKI_SERVER_URL, 'https://kroki.io']`