I would like to include a simple diagram (= boxes connected by arrows) in the docs of a Julia package, generated by Documenter.jl as usual.
I am not sure what my best option is.
I can just write it in whatever markup I like, render it on my machine to an SVG file and include it as an image. Pro: robust, no hassle. Cons: need to remember to regenerate and commit if updated.
I have seen DocumenterDiagrams.jl, powered by Kroki.jl. But currently kroki.io is down, and I would not want to call a web service each time the page is viewed.
Is there an in-Julia solution for rendering diagrams?
I use https://asciiflow.com/ all the time, these have the nice property that you can copy-paste them everywhere, on slack, discourse, dostrings, documenter, email, you name it.
Out of the various great suggestions, this is the closest to my heart, so I am marking it as the solution.
I love this approach since it is just text in a ``` block, requires absolutely no tooling whatsoever to render, is completely future-proof, and there are various Emacs modes doing this too, eg uniline. Thanks!