This is language documentation for D2, a modern, open-source text-to-diagram DSL. The source repository for that is here: https://github.com/terrastruct/d2.
Deployed at https://d2lang.com.
A more formal reference specification is in the works.
Init submodules
git submodule update --init
Run dev server
yarn
yarn run dev
Diagrams are auto generated by ci/render.sh
.
Renders are currently saved as .svg2
because I don't know how to override Docusaurus's
SVG loader that uses SVGGo which is causing a bug during compression (removing a class).