You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/routing.mdx
+29-16Lines changed: 29 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,24 +28,37 @@ Each content plugin defines a `routeBasePath`, which tells Docusaurus **where to
28
28
Here’s how these routes connect in the URL hierarchy:
29
29
30
30
```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"
47
58
```
48
59
60
+
<br />
61
+
49
62
When a user visits `/docs/configuration`, Docusaurus finds the `/docs` branch, and then loads the corresponding document route.
50
63
51
64
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