Skip to content

Commit 18d0ee2

Browse files
committed
Add tabs for diagram
1 parent 936e5cd commit 18d0ee2

File tree

1 file changed

+34
-12
lines changed

1 file changed

+34
-12
lines changed

docs/docker/overview.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,37 @@ The container runs under both x86_64 and ARM based architectures.
2525

2626
The following diagram details the flow of how netboot.xyz serves content to a client and how it works when the Docker container is used:
2727

28-
```mermaid
29-
graph TD
30-
A[Client Computer] -->|PXE Boot Request| B{netboot.xyz container?}
31-
B -- Yes --> C[netboot.xyz container]
32-
C -- Local request --> D[Serve netboot.xyz]
33-
C -- Unavailable --> E[boot.netboot.xyz]
34-
B -- No --> E
35-
E -->|Internet Request| F[boot.netboot.xyz]
36-
F --> G[Serve netboot.xyz]
37-
G --> H[Client Boots OS]
38-
D --> H
39-
```
28+
import Tabs from '@theme/Tabs';
29+
import TabItem from '@theme/TabItem';
30+
31+
<Tabs>
32+
33+
<TabItem value="lr-diag" label="Left Right" default>
34+
```mermaid
35+
graph LR
36+
A[Client Computer] -->|PXE Boot Request| B{netboot.xyz container?}
37+
B -- Yes --> C[netboot.xyz container]
38+
C -- Local request --> D[Serve netboot.xyz]
39+
C -- Unavailable --> E[boot.netboot.xyz]
40+
B -- No --> E
41+
E -->|Internet Request| F[boot.netboot.xyz]
42+
F --> G[Serve netboot.xyz]
43+
G --> H[Client Boots OS]
44+
D --> H
45+
```
46+
</TabItem>
47+
<TabItem value="td-diag" label="Top Down">
48+
```mermaid
49+
graph TD
50+
A[Client Computer] -->|PXE Boot Request| B{netboot.xyz container?}
51+
B -- Yes --> C[netboot.xyz container]
52+
C -- Local request --> D[Serve netboot.xyz]
53+
C -- Unavailable --> E[boot.netboot.xyz]
54+
B -- No --> E
55+
E -->|Internet Request| F[boot.netboot.xyz]
56+
F --> G[Serve netboot.xyz]
57+
G --> H[Client Boots OS]
58+
D --> H
59+
```
60+
</TabItem>
61+
</Tabs>

0 commit comments

Comments
 (0)