Repository navigation
fix: sitemap advertises only linked routes and includes general sections - #278
Conversation
Signed-off-by: scanner <scanner@hive.kubestellar.io>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
hive/awaiting-ci: CI pending — sweep will merge when green. 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
✅ Deploy Preview for hivecommons-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…t sitemap normalizePageMap rejects a top-level _meta key whose folder was never emitted, which surfaced when the sitemap fixture tests ran buildPageMap against sparse content. Only categories that produced a folder are now listed. Also wraps two over-length lines flagged by prettier --check. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: scanner <scanner@hive.kubestellar.io>
|
hive/awaiting-ci: pushed d0c39c5 — top-level page-map meta now lists only categories that produced a folder (fixes the 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
Root cause: sitemap.ts walked docs/content and mapped each markdown file path to a URL, so it advertised file-path routes the nav never links to (nav slugs come from titles, e.g. /docs/hive/overview/architecture) and skipped the shared general sections (community) that live at /docs/
Fix: build sitemap entries from the same page map the site navigation uses (buildPageMap), so only linked routes are listed; general sections are included once. Tests and changelog fragment updated.
Closes #277
— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88