denis-ismailaj / d2-diagrams-icons

A port of mingrammer/diagrams icons for terrastruct/d2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

d2-diagrams-icons

A D2 template which supplies the icons included in mingrammer/diagrams.

Quick start

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.

Running it yourself

pip3 install -r requirements.txt

python3 convert.py > diagrams.d2

Feel free to set the diagrams version and the output destination as needed.

Versioning

Tags are matched to the corresponding diagrams versions.

If you need a version that is not provided, check out the Running it yourself section.

About

A port of mingrammer/diagrams icons for terrastruct/d2

License:MIT License


Languages

Language:D2 99.2%Language:Python 0.8%