December 23, 2023 by Henk Verlinde—
Diagrams support, extended code blocks formatting, and more.
Doks 1.2 is out! This release features support for diagrams, extended code blocks formatting, and more.
To take advantage of the latest features, make sure you’re running the latest version of Doks. You can upgrade to Doks 1.2 by following the Upgrade to v1.2 migration guide.
Diagrams are now available in 1.2. You can use a fenced code block to embed an SVG image of a diagram in your Doks site using the free Kroki service.
Read more about diagrams in our documentation.
Code blocks formatting
Doks now extends the formatting possibilities for code blocks. Code blocks can be rendered inside a window-like frame. A frame that looks like a terminal window will be used for shell scripting languages (e.g.
sh). Other languages display inside a code editor-style frame if they include a title.
A code block’s optional title can be set with a
title="..." attribute following the code block’s opening backticks and language identifier.
Additional bug fixes are included in this release. Check out the release notes to learn more.