Skip to content

Commit

Permalink
update d2 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Feb 12, 2025
1 parent bbba11f commit cb51a50
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/content/docs/diagrams/d2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ Or locally:
- [x] [JS package](https://github.com/terrastruct/d2/discussions/234#discussioncomment-11286029)
- [x] [Export JSON graph](https://github.com/terrastruct/d2/discussions/2224)
- [x] [support `import`](https://github.com/terrastruct/d2/issues/2301)
- [ ] [d2js: Additional render options](https://github.com/terrastruct/d2/pull/2343), like `pad`
- [ ] [Class-based dark mode](https://github.com/terrastruct/d2/pull/1803)
- [ ] [Remove embeded fonts](https://github.com/terrastruct/d2/discussions/132)
- [ ] [Smaller embeded icons](https://github.com/terrastruct/d2/discussions/2223)
- [ ] [d2js: full options args](https://github.com/terrastruct/d2/issues/2297), like `pad`
- [ ] Link resolution callback
- [ ] Why images and icons don't work with `file` strategy?
12 changes: 12 additions & 0 deletions packages/docs/src/content/docs/examples/d2-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ title: d2 test

## Interesting ones

### Image/icon

```d2 strategy=inline darkScheme=false
my network: {
icon: https://icons.terrastruct.com/infra/019-network.svg
}
github: {
shape: image
icon: https://icons.terrastruct.com/dev/github.svg
}
```

### Interactive example

```d2 strategy=inline darkScheme=false graphFormat=dagre class=shadow svgo=false
Expand Down

0 comments on commit cb51a50

Please sign in to comment.