Skip to content

Releases: MikhailKravets/mkdocs_puml

Material Theme

25 Oct 11:13
9a0e8ea
Compare
Choose a tag to compare

🚀 What's New?

Material Theme Support

Since now, you can use material theme that implements color schemes of mkdocs-material. In order to use material theme set the desired flavors for light and dark mode as follows

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

With the material theme, you can style your PlantUML diagrams to closely resemble mermaidjs diagrams.

Read more in a dedicated Material Theme Card.

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.

Meet the Docs

20 Oct 14:43
34f9c02
Compare
Choose a tag to compare

🚀 What's New?

Documentation web-site

Now the documentation of the project is available at 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

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.

🔧 Improvements

Themes, Bug Fixes, and Improvements

16 Oct 14:02
662c55a
Compare
Choose a tag to compare

🚀 What's New?

Nord Theme

We've applied Nord color palette for PlantUML. Nord theme has two flavors

  • day for light mode
  • night for dark mode

For more information, visit Nord card.

Kanagawa Theme

We've, also, applied 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.

🔧 Improvements

Themes, Cache, and Beyond

12 Oct 09:16
5e67e55
Compare
Choose a tag to compare

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 🔥 .

🚀 What's New?

Themes

We've added full support for automatic light / dark theming of diagrams that works not only with 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

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

You can combine different themes together

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 — a default PlantUML theme for diagrams + enhanced dark mode for C4;
  • catppuccin — an implementation of famous catppuccin theme for PlantUML.

🎨 Read more about mkdocs_puml 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

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

Alternatively, you can disable caching entirely

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

verbose: false

Interactive diagrams

We added interaction to diagrams.

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

Hotfix Dark Mode

05 Oct 06:20
1aff5f6
Compare
Choose a tag to compare

Improvements

@MaciejKucia hotfixed #48 in #49. Thank you 🔥

Dark Mode

02 Oct 11:35
e7968de
Compare
Choose a tag to compare

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:

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

New

Improvements

Micro release 1.3.1

15 May 13:14
1574fb5
Compare
Choose a tag to compare

Improvements

  • Fix compatibility issue with mkdocs ~= 1.5 by @Yannis4444 in #40
  • Update dependencies versions in Pipfile.lock

Skip SSL verification

05 Apr 14:32
7b007a8
Compare
Choose a tag to compare

New

  • Add verify_ssl parameter to optionally skip SSL certificates verification.

Micro release 1.2.4

02 Jan 10:06
1c1758c
Compare
Choose a tag to compare

Improvements

  • Update dependencies versions to the latest state

Resolve compatibility issues with mkdocs >= 1.5

30 Jul 09:49
ea75769
Compare
Choose a tag to compare

Improved

Make this plugin compatible with mkdocs ~= 1.5.0