Skip to content

Commit

Permalink
move astro-graphviz to experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Nov 20, 2024
1 parent 3499174 commit 12eb52d
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 59 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ I have implemented core packages and added some examples. However, I still need

### Diagrams

| | rehype | Astro |
| -------- | ----------------------------------------------------------- | ----- |
| Graphviz | [@beoe/rehype-graphviz](/packages/rehype-graphviz/) | |
| Mermaid | [@beoe/rehype-mermaid](/packages/rehype-mermaid/) | |
| Gnuplot | [@beoe/rehype-gnuplot](/packages/rehype-gnuplot/) | |
| Vizdom | [@beoe/rehype-vizdom](/packages/rehype-vizdom/) | |
| D2 | [@beoe/rehype-d2](/packages/rehype-d2/) (not published yet) | |
| Penrose | | |
| ... | | |
| | rehype |
| -------- | ----------------------------------------------------------- |
| Graphviz | [@beoe/rehype-graphviz](/packages/rehype-graphviz/) |
| Mermaid | [@beoe/rehype-mermaid](/packages/rehype-mermaid/) |
| Gnuplot | [@beoe/rehype-gnuplot](/packages/rehype-gnuplot/) |
| Vizdom | [@beoe/rehype-vizdom](/packages/rehype-vizdom/) |
| D2 | [@beoe/rehype-d2](/packages/rehype-d2/) (not published yet) |
| Penrose | |
| ... | |

Ideas for other diagrams: [Text to Diagram](https://stereobooster.com/posts/text-to-diagram/).

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.
1 change: 0 additions & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "^0.28.3",
"@beoe/astro-graphviz": "workspace:*",
"@beoe/cache": "workspace:*",
"@beoe/pan-zoom": "workspace:*",
"@beoe/rehype-d2": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,33 +103,3 @@ graph {
}
```

## astro-component

import { Graphviz } from "@beoe/astro-graphviz";

<Graphviz
class="not-content"
code={`digraph finite_state_machine {
bgcolor="transparent";
fontname="Helvetica,Arial,sans-serif";
node [fontname="Helvetica,Arial,sans-serif"]
edge [fontname="Helvetica,Arial,sans-serif"]
rankdir=LR;
node [shape = doublecircle]; 0 3 4 8;
node [shape = circle];
0 -> 2 [label = "SS(B)"];
0 -> 1 [label = "SS(S)"];
1 -> 3 [label = "S($end)"];
2 -> 6 [label = "SS(b)"];
2 -> 5 [label = "SS(a)"];
2 -> 4 [label = "S(A)"];
5 -> 7 [label = "S(b)"];
5 -> 5 [label = "S(a)"];
6 -> 6 [label = "S(b)"];
6 -> 5 [label = "S(a)"];
7 -> 8 [label = "S(b)"];
7 -> 5 [label = "S(a)"];
8 -> 6 [label = "S(b)"];
8 -> 5 [label = "S(a)"];
}`}
/>
19 changes: 0 additions & 19 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 12eb52d

Please sign in to comment.