Skip to content

denis-ismailaj/d2-diagrams-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.