fix: resolve 404 on API docs navigation link - #1008
Merged
IEvangelist merged 1 commit intoApr 20, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes broken API documentation navigation/linking in the Astro docs site so the “SDK API Reference” entry no longer routes to a non-existent slug on GitHub Pages.
Changes:
- Updated the sidebar navigation slug for “SDK API Reference” to
reference/api-referenceto match the generated route forapi-reference.md. - Replaced a broken absolute link in
sdk.mdwith a relative markdown link toapi-reference.md(compatible with the repo’s link-rewrite plugin).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/src/navigation.ts | Aligns the “SDK API Reference” nav slug with the actual generated page route. |
| docs/src/content/docs/reference/sdk.md | Fixes a broken API reference link by switching to a relative .md link. |
The navigation slug 'reference/api' did not match the actual content file 'api-reference.md' (which generates slug 'reference/api-reference'). Fixed the slug in navigation.ts and updated the broken absolute link in sdk.md to use a relative markdown link instead. Closes bradygaster#990 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ilyas-it83
force-pushed
the
squad/990-fix-api-docs-404
branch
from
April 19, 2026 15:45
4f12feb to
f7f7037
Compare
tamirdresher
pushed a commit
that referenced
this pull request
Apr 21, 2026
fix: resolve 404 on API docs navigation link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the 404 at https://bradygaster.github.io/squad/docs/reference/api/ reported in #990.
Root Cause
The navigation slug in
docs/src/navigation.tswasreference/api, but the actual content file isapi-reference.mdwhich generates the slugreference/api-reference. Additionally,sdk.mdhad a broken absolute link to/reference/api/.Changes
docs/src/navigation.ts— Fixed slug fromreference/api→reference/api-referencedocs/src/content/docs/reference/sdk.md— Changed broken absolute link to a relative markdown link (api-reference.md)Closes #990