Skip to content

Fix docs trailing-slash URLs and improve mobile API navigation - #43

Merged
aivascu merged 3 commits into
masterfrom
fix/docs-and-mobile-nav
Sep 1, 2026
Merged

Fix docs trailing-slash URLs and improve mobile API navigation#43
aivascu merged 3 commits into
masterfrom
fix/docs-and-mobile-nav

Conversation

@aivascu

@aivascu aivascu commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix docs pages showing no content when GitHub Pages serves a trailing-slash URL by normalizing paths in a global route middleware and stripping trailing slashes before content queries
  • Show API package picker, version select, and API table of contents in the mobile header menu on API routes
  • Regenerate site/package-lock.json with npm 11

Test plan

  • Open a docs page with and without a trailing slash (for example /docs/getting-started/ vs /docs/getting-started) and confirm content renders in both cases
  • On mobile viewport, open the header menu on an API page and confirm package picker, version select, and API navigation appear
  • Run npm ci and npm run generate in site/ to verify the regenerated lockfile installs cleanly

Normalize /docs and /api paths on client hydration so Nuxt Content lookups match prerendered routes.
Mirror the docs mobile sidebar in the hamburger menu so API navigation is available on small screens.
@aivascu
aivascu merged commit 2bee5d2 into master Sep 1, 2026
2 checks passed
@aivascu
aivascu deleted the fix/docs-and-mobile-nav branch September 1, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant