juzhiyuan opened a new pull request, #2142:
URL: https://github.com/apache/apisix-website/pull/2142
## Summary
The docs sidebar starts with the current page's categories collapsed, and
opening the version list pushes the navigation down. Expand the current path in
the rendered HTML and show versions in a bounded overlay instead.
```text
Docs sidebar
├─ version picker → overlay, outside-click / Escape dismissal
└─ category tree → current ancestors open, consistent chevrons and
indentation
```
Refresh row spacing, nested guides, focus outlines, and the current-page
highlight. Limit the change to three shared navigation files; no dependencies,
test files, or Admin API renderer changes.
## Evidence
- **Before:** locating a nested plugin requires manually opening its
categories; the version list displaces the tree.
**After:** `Plugins → Observability → Metrics → prometheus` opens
automatically, and the version popup leaves the tree's position unchanged.
- `npm run build` succeeds: 1,336 pages generated.
- Browser verification and screenshots at 2560×1440 and 3440×1440 cover
APISIX getting-started docs, nested plugin categories, and Ingress Controller
docs. Verified Escape/outside-click dismissal, current-path expansion without
JavaScript, and no horizontal overflow at 390px.
## Merge Danger
**Door:** two-way
Revert the three-file change to restore the previous navigation.
**Blast Radius:** documentation
Shared Astro documentation sidebars and version menus.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]