Mkdocs-puml

Latest version: v2.3.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.3.0

πŸš€ What's New?

Material Theme Support

Since now, you can use `material` theme that implements color schemes of [mkdocs-material](https://squidfunk.github.io/mkdocs-material/). In order to use material theme set the desired flavors for light and dark mode as follows

yaml
plantuml:
theme:
light: material/indigo-light
dark: material/indigo-dark


With the material theme, you can style your PlantUML diagrams to closely resemble [mermaidjs](https://squidfunk.github.io/mkdocs-material/reference/diagrams/) diagrams.

Read more in a dedicated [Material Theme Card](https://mikhailkravets.github.io/mkdocs_puml/themes/material/).

Default `mkdocs` Theme Support

Since this release, `mkdocs_puml` automatically adjusts diagram colors when using the default `mkdocs` theme mode switch.

Download Button

We've added a button to the control panel to download the diagram.

2.2.0

πŸš€ What's New?

Documentation web-site

Now the documentation of the project is available at [mikhailkravets.github.io/mkdocs_puml](https://mikhailkravets.github.io/mkdocs_puml/). Check it out!

New Configs

There were added two new config parameters

`request_timeout`

Specify how much time `httpx` must wait for a response from PlantUML server

yaml
plugins:
- plantuml:
request_timeout: 300


`join_project_name`

This is a cache parameter. Set it to `false` if you want to commit your diagrams to the Git. Read more in the [documentation](https://mikhailkravets.github.io/mkdocs_puml/getting_started/setup/#join_project_name).

πŸ”§ Improvements

- Migrate from [Flit](https://flit.pypa.io/en/stable/) + [Pipenv](https://pipenv.pypa.io/en/latest/) to [Poetry](https://python-poetry.org/).
- Update the project logo.

2.1.0

πŸš€ What's New?

Nord Theme

We've applied [Nord](https://www.nordtheme.com/) color palette for PlantUML. `Nord` theme has two flavors

- `day` for light mode
- `night` for dark mode

For more information, [visit Nord card](https://github.com/MikhailKravets/mkdocs_puml/tree/themes/themes/nord).

Kanagawa Theme

We've, also, applied [Kanagawa.nvim](https://github.com/rebelot/kanagawa.nvim) color palette for PlantUML.
`Kanagawa` theme has two flavors as well

- `fuji` for light mode
- `wave` for dark mode

For more information [visit Kanagawa card](https://github.com/MikhailKravets/mkdocs_puml/tree/themes/themes/kanagawa).

πŸ”§ Improvements

- Fix 64
- Fix 62

2.0.0

This release delivers several long-awaited features. Looking back at what’s been accomplished, it’s surprising that it took nearly two years to finally bring it all together. However, it's here and we invite everyone to try the new version :fire: .

πŸš€ What's New?

Themes

We've added full support for automatic light / dark theming of diagrams that works not only with [plantuml.com](http://plantuml.com) server but with all PlantUML servers. You can choose a theme for each mode by adding the following lines to the `mkdocs.yml`

yaml
theme:
light: default/light
dark: default/dark


You can combine different themes together

yaml
theme:
light: default/light
dark: catppuccin/mocha


By default `mkdocs_puml` searches for themes in its github repository but you can setup your own server or repository for your custom themes.

Themes Repository

`mkdocs_puml` now includes its own repository of themes. For version `2.0.0`, we have prepared two themes

* [default](https://github.com/MikhailKravets/mkdocs_puml/blob/master/themes/default/README.md) β€” a default PlantUML theme for diagrams **+** enhanced dark mode for C4;
* [catppuccin](https://github.com/MikhailKravets/mkdocs_puml/blob/master/themes/catppuccin/README.md) β€” an implementation of famous [catppuccin](https://catppuccin.com) theme for PlantUML.

🎨 [**Read more about mkdocs_puml themes**](https://github.com/MikhailKravets/mkdocs_puml/tree/master/themes)

Storage and Cache

You don't need to re-render diagrams that are already fine. You only need to render those that have been changed.
Now, `mkdocs_puml` persists the diagrams in the file and requests PlantUML server only with the ones that were
modified by user. This significantly reduces the documentation build time.

You can manage the storage behavior by modifying `cache` parameter

yaml
cache:
backend: local
local:
path: "~/.cache/mkdocs_puml"


Alternatively, you can disable caching entirely

yaml
cache:
backend: disabled


This will keep the diagrams in RAM only.

Asynchronous HTTP requests

In this release we have removed `ThreadPoolExecutor`. Now, we request a server asynchronously, allowing all requests to run concurrently. So, roughly speaking, a user is constrained only by a throughput of PlantUML server.

Rich terminal output

A small but pleasant feature: we’ve added a nice terminal output that displays the current status of `mkdocs_puml`.
The output is enabled by default but can be disabled simply by

yaml
verbose: false


Interactive diagrams

We added interaction to diagrams.

![](https://github.com/MikhailKravets/mkdocs_puml/blob/master/.docs/examples/interaction.gif)

Now, you can move and zoom diagrams. Also, you can copy `svg` code to clipboard.

1.4.1

Improvements

MaciejKucia hotfixed 48 in 49. Thank you πŸ”₯

1.4.0

This release primarily focuses on dark-themed diagrams. The plugin now generates two versions of diagrams (light and dark) by default.
To restore the previous behavior, you should set `auto_dark` config to `false`:

yaml
plugins:
- plantuml:
puml_url: https://www.plantuml.com/plantuml/
auto_dark: false


New

* OnceUponALoop added a support for dark diagrams in 44. Thank you πŸ”₯

Improvements

* dev-artisan fixed 43. Thank you πŸ”₯

Page 1 of 3

Β© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.