Commit 28f3cf3
Fix top navbar and left sidebar navigation, adding pathways (#18026)
## Summary
Fixes the top navigation bar and left sidebar across the ExecuTorch docs
site.
Builds on the decision matrix / user pathways work from the previous
commit.
## Changes
### Top Navbar (`conf.py` )
- **Removed all dropdown menus** — set `enable_navbar_dropdowns: False`
so every
top-level nav item is a flat, direct link with no hover dropdown
- **Removed the "More" overflow dropdown** — raised
`header_links_before_dropdown`
to `10` so all 9 nav items are always visible
- Added `navigation_depth: 2`, `show_nav_level: 1`,
`collapse_navigation: False`
for consistent left sidebar depth
### Top-Level Nav Structure (`index.md`)
- Reduced from 10 to 9 top-level toctree items by merging `api-section`
into
`advanced-topics-section`
- Consolidated the "Explore Documentation" section from 9 stacked
single-card
grids into one clean 3-column grid
### API Reference (`advanced-topics-section.md`)
- Added an "API Reference" section with links to all 7 API docs
- Added the 7 API pages to the section's toctree so they appear in the
left
sidebar under Advanced
### Pathway Pages Sidebar (`user-pathways.md`, `pathway-*.md`)
- Renamed the `user-pathways.md` toctree caption from "User Pathways" to
"Find Your Path" to match the navbar label
- Removed circular toctree references from `pathway-beginner.md`,
`pathway-quickstart.md`, and `pathway-advanced.md` that caused a
`RecursionError` during the Sphinx build
## Before / After
| Area | Before | After |
|---|---|---|
| Top navbar | 8 items + "More" dropdown with 2 overflow items | 9 flat
items, no dropdown |
| Nav item dropdowns | Each item showed child pages on hover | Flat
links only |
| Pathway page sidebar | 50+ inline cross-reference links | 3 clean
pathway links |
| Explore Documentation | 9 stacked full-width cards | 3-column grid of
8 cards |
| API docs | Separate top-level nav item | Nested under Advanced |
## Preview
Co-authored-by: Manus Agent <manus-agent@manus.im>1 parent 6823b33 commit 28f3cf3
File tree
7 files changed
+1334
-10
lines changed- docs/source
7 files changed
+1334
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
14 | 72 | | |
15 | 73 | | |
16 | 74 | | |
| |||
186 | 244 | | |
187 | 245 | | |
188 | 246 | | |
| 247 | + | |
189 | 248 | | |
190 | 249 | | |
191 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
9 | 34 | | |
10 | 35 | | |
11 | 36 | | |
12 | 37 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
17 | 42 | | |
18 | 43 | | |
19 | 44 | | |
| |||
0 commit comments