Skip to content

Commit 35ec9a9

Browse files
authored
Merge pull request #4855 from codeharborhub/dev-5-1
Added readable labels in mermaid graph
2 parents b38c04c + f279fcc commit 35ec9a9

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

docs/advanced/routing.mdx

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,37 @@ Each content plugin defines a `routeBasePath`, which tells Docusaurus **where to
2828
Here’s how these routes connect in the URL hierarchy:
2929

3030
```mermaid
31-
graph LR;
32-
A(["https://codeharborhub.github.io/"])
33-
B(["/base-url/"])
34-
C(["/docs/"])
35-
D(["/blog/"])
36-
E(["/"])
37-
F["Docs Routes"]
38-
G["Blog Routes"]
39-
H["Page Routes"]
40-
A---B;
41-
B---C;
42-
B---D;
43-
B---E;
44-
C---F;
45-
D---G;
46-
E---H;
31+
graph LR
32+
A(["CodeHarborHub 🌐"])
33+
B(["Base URL"])
34+
C(["Docs"])
35+
D(["Blog"])
36+
E(["Home Page"])
37+
F["📘 Docs Routes"]
38+
G["📰 Blog Routes"]
39+
H["🧭 Page Routes"]
40+
41+
A --- B
42+
B --- C
43+
B --- D
44+
B --- E
45+
C --- F
46+
D --- G
47+
E --- H
48+
49+
%% Clickable links
50+
click A "https://codeharborhub.github.io/" "Visit CodeHarborHub"
51+
click B "https://codeharborhub.github.io/base-url/" "Base URL"
52+
click C "https://codeharborhub.github.io/docs/" "Docs Section"
53+
click D "https://codeharborhub.github.io/blog/" "Blog Section"
54+
click E "https://codeharborhub.github.io/" "Homepage"
55+
click F "https://codeharborhub.github.io/docs/" "Docs Routes"
56+
click G "https://codeharborhub.github.io/blog/" "Blog Routes"
57+
click H "https://codeharborhub.github.io/" "Page Routes"
4758
```
4859

60+
<br />
61+
4962
When a user visits `/docs/configuration`, Docusaurus finds the `/docs` branch, and then loads the corresponding document route.
5063

5164
You can fully customize your route structure. For instance, setting `routeBasePath: '/'` in **Docs-only mode** removes the `/docs` prefix while keeping all other plugins intact.

0 commit comments

Comments
 (0)