A D2 template which supplies the icons included
in mingrammer/diagrams.
Include diagrams.g2 in your project[1]:
wget https://raw.githubusercontent.com/denis-ismailaj/d2-diagrams-icons/v0.23.4/diagrams.d2
Import the component you need (you can find them here)
app: @diagrams.programming.language.Go
# or
app: {
...@diagrams.programming.language.Go
}
This is the same as the following in diagrams:
from diagrams.programming.language import Go
Go("app")
[1] Importing remote templates is not supported by G2 yet. You can follow this issue here.
pip3 install -r requirements.txt
python3 convert.py > diagrams.d2
Feel free to set the diagrams version
and the output destination as needed.
Tags are matched to the corresponding diagrams versions.
If you need a version that is not provided, check out the Running it yourself section.