Skip to content

Commit 201eaa3

Browse files
authored
docs: fix MDX/Mermaid build errors in v2 docs (#951)
1 parent d7b231a commit 201eaa3

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

docs/v2/advanced/stateful_cursor.mdx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,19 @@ and resumes the source from there.
2525
Add a top-level `[cursor]` section to enable the feature, and pick a backend with `type`:
2626

2727
<Tabs syncKey="cursor-backend">
28-
<TabItem label="Memory">
28+
<TabItem label="Memory">
29+
2930
Keeps the cursor in memory only — the position is **not** persisted across restarts. This is
3031
the default when no `[cursor]` section is present, and takes no extra fields.
3132

3233
```toml title="daemon.toml"
3334
[cursor]
3435
type = "Memory"
3536
```
36-
</TabItem>
37-
<TabItem label="File">
37+
38+
</TabItem>
39+
<TabItem label="File">
40+
3841
Stores the cursor in a JSON file on the local file system.
3942

4043
```toml title="daemon.toml"
@@ -51,8 +54,10 @@ flush_interval = 10
5154
recover across rollbacks.
5255
- `flush_interval` (optional, default = `10`): how often, in seconds, the position is written
5356
to disk.
54-
</TabItem>
55-
<TabItem label="Redis">
57+
58+
</TabItem>
59+
<TabItem label="Redis">
60+
5661
Stores the cursor in a Redis instance — handy when running multiple environments or ephemeral
5762
containers.
5863

@@ -70,5 +75,6 @@ flush_interval = 10
7075
- `max_breadcrumbs` (optional, default = `10`): how many recent positions to retain.
7176
- `flush_interval` (optional, default = `10`): how often, in seconds, the position is flushed
7277
to Redis.
73-
</TabItem>
78+
79+
</TabItem>
7480
</Tabs>

docs/v2/how_it_works.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ batches.
1111

1212
```mermaid
1313
flowchart LR
14-
node([Cardano node]) -->|Ouroboros mini-protocols| source[Source]
14+
cnode([Cardano node]) -->|Ouroboros mini-protocols| source[Source]
1515
source --> f1[Filter] --> f2[Filter] --> sink[Sink]
1616
sink --> dest([Destination])
17-
sink -.reports position.-> cursor[(Cursor)]
18-
cursor -.restores on restart.-> source
17+
sink -. reports position .-> cursor[(Cursor)]
18+
cursor -. restores on restart .-> source
1919
```
2020

2121
## The pipeline

0 commit comments

Comments
 (0)