Skip to content

Commit

Permalink
rename demo to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Dec 4, 2024
1 parent ba74e2f commit edcb57f
Show file tree
Hide file tree
Showing 45 changed files with 28 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Ideas for other diagrams: [Text to Diagram](https://stereobooster.com/posts/text
- [x] [@beoe/remark-code-hook](/packages/remark-code-hook/)
- [x] [@beoe/pan-zoom](/packages/pan-zoom/)
- [x] [@beoe/fenceparser](/packages/fenceparser/)
- [x] [docs](/packages/docs/) [![Netlify Status](https://api.netlify.com/api/v1/badges/14126476-0cdb-4802-9a5b-e7f598221650/deploy-status)](https://app.netlify.com/sites/beoe/deploys)

## Logo

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ You can create small Netlify plugin to install D2. See example [here](https://gi
- [ ] [Export JSON graph](https://github.com/terrastruct/d2/discussions/2224)
- [ ] [Class-based dark mode](https://github.com/terrastruct/d2/discussions/2225)
- [ ] Link resolution callback

## TODO

- [ ] add documentation about `d2Options`
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Check out other [options](/start-here/configuration/).

### Configuration

You probaly want to use `inline` strategy and implement dark scheme via CSS:
You probaly want to use [`inline`](/start-here/strategy/#inline) strategy and implement dark scheme via CSS:

```css
.graphviz {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Check out other [options](/start-here/configuration/).

### Configuration

You probaly want to use `inline` strategy and implement dark scheme via CSS:
You probaly want to use [`inline`](/start-here/strategy/#inline) strategy and implement dark scheme via CSS:

```css
.vizdom {
Expand Down Expand Up @@ -180,3 +180,7 @@ You probaly want to use `inline` strategy and implement dark scheme via CSS:
- [ ] [HTML classes are not supported](https://github.com/vizdom-dev/vizdom/issues/11)
- [ ] [Text is transformed to path, so <kbd>Cmd</kbd> + <kbd>F</kbd> doesn't work](https://github.com/vizdom-dev/vizdom/issues/12)
- [ ] Doesn't support some unicode chars, like `label="∅"`

## TODO

- [ ] Maybe rename `dataGraph` to `graphFormat`. And documentation for it
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,7 @@ Be aware that some CSS will cause pixelation of SVG on zoom (bug in Safari), for
- `will-change: transform;`
- `transform: matrix3d(...);`
- `transition-property: transform;` (it setles after animation, though)

## TODO

- [ ] some kind of threshold for small images (pan-zoom UI looks weird for small images)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Tabs, TabItem } from "@astrojs/starlight/components";

## Alt

Works only with `strategy=file` and `strategy=data-url`.
Works only with strategy [`file`](/start-here/strategy/#file) and [`data-url`](/start-here/strategy/#data-url)

<Tabs>
<TabItem label="Markdown">
Expand Down Expand Up @@ -61,6 +61,7 @@ graph LR
<desc>Bob's Burgers process for making big decisions</desc>
</svg>
```

</TabItem>
<TabItem label="Diagram">
```mermaid strategy=inline
Expand All @@ -71,4 +72,3 @@ graph LR
```
</TabItem>
</Tabs>

Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ html[data-theme="dark"] .beoe-light {

## Strategy vs dark scheme

| | `class` | `media` |
| ---------- | --------- | ------- |
| `inline` | maybe (1) | no |
| `data-url` | yes | yes |
| `file` | yes | yes |
| | `class` | `media` |
| -------------------------------------------- | --------- | ------- |
| [`inline`](/start-here/strategy/#inline) | maybe (1) | no |
| [`data-url`](/start-here/strategy/#data-url) | yes | yes |
| [`file`](/start-here/strategy/#file) | yes | yes |

(1) - for example, works for Mermaid, but doesn't work for D2 (check with light mode):

Expand All @@ -83,6 +83,7 @@ import { Tabs, TabItem } from "@astrojs/starlight/components";
direction: right
a -> b -> c -> d -> e
```

</TabItem>
<TabItem label="Markdown">

Expand All @@ -92,5 +93,6 @@ direction: right
a -> b -> c -> d -> e
```
````

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar:

import { Tabs, TabItem } from "@astrojs/starlight/components";

Works only with `strategy=inline`.
Works only with strategy [`inline`](/start-here/strategy/#inline).

## Searchable text

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar:

import { Tabs, TabItem } from "@astrojs/starlight/components";

Works only with `strategy=inline`.
Works only with strategy [`inline`](/start-here/strategy/#inline).

**Basic idea**: you can target with CSS any SVG node, something like this:

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edcb57f

Please sign in to comment.