Skip to content

Commit

Permalink
add support for d2 diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and hason committed Oct 4, 2023
1 parent f0d7572 commit 2665ddf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions sphinxcontrib/kroki/kroki.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"bpmn": "bpmn",
"bytefield": "bytefield",
"c4plantuml": "c4plantuml",
"d2": "d2",
"dot": "graphviz",
"ditaa": "ditaa",
"er": "erd",
Expand Down
25 changes: 25 additions & 0 deletions tests/fixtures/test-kroki/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,28 @@ Hello |diagram| kroki world

.. kroki:: diagram.ditaa
:align: right

.. kroki::
:type: d2

# Actors
hans: Hans Niemann

defendants: {
mc: Magnus Carlsen
playmagnus: Play Magnus Group
chesscom: Chess.com
naka: Hikaru Nakamura

mc -> playmagnus: Owns majority
playmagnus <-> chesscom: Merger talks
chesscom -> naka: Sponsoring
}

# Accusations
hans -> defendants: 'sueing for $100M'

# Claim
defendants.naka -> hans: Accused of cheating on his stream
defendants.mc -> hans: Lost then withdrew with accusations
defendants.chesscom -> hans: 72 page report of cheating

0 comments on commit 2665ddf

Please sign in to comment.