Re:How to draw beautiful software architecture diagrams (2022)
by jk563 on Friday October 27, 2023 @08:53AM
(#38037775)
> no fast local preview
I found their Lite container version perfect for local iteration on diagrams: https://docs.structurizr.com/lite/quickstart
Re:How to draw beautiful software architecture diagrams (2022)
by ska on Friday October 27, 2023 @01:15PM
(#38041171)
FWIW You can do a C4 model using plantUML diagrams [1] imported directly into RST markdown.
That way in an editor like VSCode (e.g. where you have/make plugins to support) you can live preview the diagram in your editor while editing the related text - both get syntax highlighting etc. Using a tool like sphinx to tie everything together helps, as you can easily (enough) write extensions to handle quirks of your own setup reasonable if needed.
I've seen this work pretty well, in a /doc folder in the git repo with some autogenerated reference links as well, from the same repo. You either need the plantUML jar file local (and java, obv) or to point it at a rendering instance "local enough".
I had a better experience using plantML for sequence diagrams. The task is easier so the output of the interpreter is typically useful without manual interventions.