Metalsmith is used to build this static site. Here's how Graphviz was integrated to automatically generate diagrams.
In order to automatically generate diagrams for my site that's built with Node, I compiled Graphviz to WebAssembly. Here's my experience.
I'd like to use Mermaid to generate SVG diagrams for my static site at build time. Here's my attempt at integrating Mermaid.