2022-11-22 09:20:03AM

This commit is contained in:
Alexander Wang 2022-11-22 09:20:03 -08:00
parent cffaf2ba0c
commit 856f5f3e47
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
2 changed files with 28 additions and 0 deletions

View file

@ -39,6 +39,34 @@
<!-- tocstop -->
# What does D2 look like?
```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'
# Offense
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
```
<img src="./docs/assets/syntax.png" alt="D2 render example" />
## Quickstart
The most convenient way to use D2 is to just run it as a CLI executable to

BIN
docs/assets/syntax.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB