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: organize/navigation.mdx
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ Pages are the most fundamental navigation component. Pages map to the MDX files
14
14
<img
15
15
className="block dark:hidden pointer-events-none"
16
16
src="/images/navigation/pages-light.png"
17
-
alt=""
17
+
alt="Decorative graphic of pages."
18
18
/>
19
19
20
20
<img
21
21
className="hidden dark:block pointer-events-none"
22
22
src="/images/navigation/pages-dark.png"
23
-
alt=""
23
+
alt="Decorative graphic of pages."
24
24
/>
25
25
26
26
In the `navigation` object, `pages` is an array where each entry must reference the path to a [page file](pages).
@@ -46,13 +46,13 @@ Use groups to organize your sidebar navigation into sections. Groups can be nest
46
46
<img
47
47
className="block dark:hidden pointer-events-none"
48
48
src="/images/navigation/groups-light.png"
49
-
alt=""
49
+
alt="Decorative graphic of groups."
50
50
/>
51
51
52
52
<img
53
53
className="hidden dark:block pointer-events-none"
54
54
src="/images/navigation/groups-dark.png"
55
-
alt=""
55
+
alt="Decorative graphic of groups."
56
56
/>
57
57
58
58
In the `navigation` object, `groups` is an array where each entry is an object that requires a `group` field and a `pages` field. The `icon`, `tag`, and `expanded` fields are optional.
@@ -110,13 +110,13 @@ Tabs create distinct sections of your documentation with separate URL paths. Tab
110
110
<img
111
111
className="block dark:hidden pointer-events-none"
112
112
src="/images/navigation/tabs-light.png"
113
-
alt=""
113
+
alt="Decorative graphic of a tab navigation."
114
114
/>
115
115
116
116
<img
117
117
className="hidden dark:block pointer-events-none"
118
118
src="/images/navigation/tabs-dark.png"
119
-
alt=""
119
+
alt="Decorative graphic of a tab navigation."
120
120
/>
121
121
122
122
In the `navigation` object, `tabs` is an array where each entry is an object that requires a `tab` field and can contain other navigation fields such as groups, pages, icons, or links to external pages.
@@ -206,11 +206,13 @@ Anchors add persistent navigation items to the top of your sidebar. Use anchors
206
206
<img
207
207
className="block dark:hidden pointer-events-none"
208
208
src="/images/navigation/anchors-light.png"
209
+
alt="Decorative graphic of an anchor navigation."
209
210
/>
210
211
211
212
<img
212
213
className="hidden dark:block pointer-events-none"
213
214
src="/images/navigation/anchors-dark.png"
215
+
alt="Decorative graphic of an anchor navigation."
214
216
/>
215
217
216
218
In the `navigation` object, `anchors` is an array where each entry is an object that requires an `anchor` field and can contain other navigation fields such as groups, pages, icons, or links to external pages.
@@ -279,11 +281,13 @@ Dropdowns are contained in an expandable menu at the top of your sidebar navigat
279
281
<img
280
282
className="block dark:hidden pointer-events-none"
281
283
src="/images/navigation/dropdowns-light.png"
284
+
alt="Decorative graphic of a dropdown navigation."
282
285
/>
283
286
284
287
<img
285
288
className="hidden dark:block pointer-events-none"
286
289
src="/images/navigation/dropdowns-dark.png"
290
+
alt="Decorative graphic of a dropdown navigation."
287
291
/>
288
292
289
293
In the `navigation` object, `dropdowns` is an array where each entry is an object that requires a `dropdown` field and can contain other navigation fields such as groups, pages, icons, or links to external pages.
@@ -324,11 +328,13 @@ In the `navigation` object, `dropdowns` is an array where each entry is an objec
Products create a dedicated navigation division for organizing product-specific documentation. Use products to separate different offerings, services, or major feature sets within your documentation.
@@ -420,11 +426,13 @@ Partition your navigation into different versions. Versions are selectable from
420
426
<img
421
427
className="block dark:hidden pointer-events-none"
422
428
src="/images/navigation/versions-light.png"
429
+
alt="Decorative graphic of a version switcher."
423
430
/>
424
431
425
432
<img
426
433
className="hidden dark:block pointer-events-none"
427
434
src="/images/navigation/versions-dark.png"
435
+
alt="Decorative graphic of a version switcher."
428
436
/>
429
437
430
438
In the `navigation` object, `versions` is an array where each entry is an object that requires a `version` field and can contain any other navigation fields.
@@ -463,11 +471,13 @@ Partition your navigation into different languages. Languages are selectable fro
463
471
<img
464
472
className="block dark:hidden pointer-events-none"
465
473
src="/images/navigation/languages-light.png"
474
+
alt="Decorative graphic of a language switcher."
466
475
/>
467
476
468
477
<img
469
478
className="hidden dark:block pointer-events-none"
470
479
src="/images/navigation/languages-dark.png"
480
+
alt="Decorative graphic of a language switcher."
471
481
/>
472
482
473
483
In the `navigation` object, `languages` is an array where each entry is an object that requires a `language` field and can contain any other navigation fields.
0 commit comments