Skip to content

Commit

Permalink
try to publish to Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Nov 30, 2024
1 parent 4680d17 commit b5136e7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 27 deletions.
2 changes: 0 additions & 2 deletions packages/demo/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import starlight from "@astrojs/starlight";
import { qrcode } from "vite-plugin-qrcode";

import { getCache } from "@beoe/cache";
// can't deploy Playwright on Netlify
// "@beoe/rehype-mermaid": "workspace:*",
import { rehypeMermaid } from "@beoe/rehype-mermaid";
import { rehypeGraphviz } from "@beoe/rehype-graphviz";
import { rehypeGnuplot } from "@beoe/rehype-gnuplot";
Expand Down
26 changes: 13 additions & 13 deletions packages/demo/src/content/docs/examples/mermaid-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ draft: true
## rehype-mermaid

```mermaid
---
title: Node with text
acc_title: Accessible node text
---
flowchart LR
id1[This is the text in the box]
graph LR
accTitle: Big Decisions
accDescr: Bob's Burgers process for making big decisions
A[Identify Big Decision] --> B{Make Big Decision}
B --> D[Be done]
```

```mermaid strategy=inline class=not-content
graph LR
accTitle: Big Decisions
accDescr: Bob's Burgers process for making big decisions
A[Identify Big Decision] --> B{Make Big Decision}
B --> D[Be done]
```

```mermaid
Expand Down Expand Up @@ -46,13 +53,6 @@ flowchart TB
two --> c2
```

```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
```

```mermaid
sequenceDiagram
autonumber
Expand Down
35 changes: 23 additions & 12 deletions packages/demo/src/content/docs/examples/mermaid.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
---
title: mermaid
draft: true
---

## rehype-mermaid

### flow chart

```mermaid
graph LR
accTitle: Big Decisions
accDescr: Bob's Burgers process for making big decisions
A[Identify Big Decision] --> B{Make Big Decision}
B --> D[Be done]
flowchart TB
c1-->a2
subgraph one
a1-->a2
end
subgraph two
b1-->b2
end
subgraph three
c1-->c2
end
one --> two
three --> two
two --> c2
```

```mermaid strategy=inline class=not-content
graph LR
accTitle: Big Decisions
accDescr: Bob's Burgers process for making big decisions
A[Identify Big Decision] --> B{Make Big Decision}
B --> D[Be done]
### sequence diagram

```mermaid
sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!
```

0 comments on commit b5136e7

Please sign in to comment.