Skip to content

Commit cb51a50

Browse files
committedFeb 12, 2025
update d2 docs
1 parent bbba11f commit cb51a50

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
 

‎packages/docs/src/content/docs/diagrams/d2.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Or locally:
113113
- [x] [JS package](https://github.com/terrastruct/d2/discussions/234#discussioncomment-11286029)
114114
- [x] [Export JSON graph](https://github.com/terrastruct/d2/discussions/2224)
115115
- [x] [support `import`](https://github.com/terrastruct/d2/issues/2301)
116+
- [ ] [d2js: Additional render options](https://github.com/terrastruct/d2/pull/2343), like `pad`
116117
- [ ] [Class-based dark mode](https://github.com/terrastruct/d2/pull/1803)
117118
- [ ] [Remove embeded fonts](https://github.com/terrastruct/d2/discussions/132)
118119
- [ ] [Smaller embeded icons](https://github.com/terrastruct/d2/discussions/2223)
119-
- [ ] [d2js: full options args](https://github.com/terrastruct/d2/issues/2297), like `pad`
120-
- [ ] Link resolution callback
120+
- [ ] Why images and icons don't work with `file` strategy?

‎packages/docs/src/content/docs/examples/d2-test.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ title: d2 test
44

55
## Interesting ones
66

7+
### Image/icon
8+
9+
```d2 strategy=inline darkScheme=false
10+
my network: {
11+
icon: https://icons.terrastruct.com/infra/019-network.svg
12+
}
13+
github: {
14+
shape: image
15+
icon: https://icons.terrastruct.com/dev/github.svg
16+
}
17+
```
18+
719
### Interactive example
820

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

0 commit comments

Comments
 (0)