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 cb51a50 commit 2052ba1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/docs/src/content/docs/diagrams/d2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@ Or locally:
- [ ] [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)
- [ ] Why images and icons don't work with `file` strategy?
8 changes: 7 additions & 1 deletion packages/docs/src/content/docs/start-here/strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ diagram text
</figure>
```

**Note**: this strategy requires to additional options:
**Note**: this strategy requires two additional options:

```js
use(rehypeDiagram, {
Expand All @@ -62,6 +62,12 @@ add `fsPath` (`public/beoe`) to `.gitignore`

**Note**: if you deploy to Netlify, do not use path that starts with `.`.

**Note**:

> External resources (e.g. images, stylesheets) cannot be loaded, though they can be used if inlined through `data:` URLs.
>
> [SVG as an Image Restrictions](https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_as_an_Image#restrictions)
### `iframe`

`iframe` is the new idea. **Not implemented**
Expand Down

0 comments on commit 2052ba1

Please sign in to comment.