Add custom YAPTIDE 404 page - #97
Merged
Merged
Conversation
Replace Starlight's default 404 with a YAPTIDE-branded splash page that links back to the docs home, popular pages, the user docs, and the issue tracker for reporting broken links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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
src/content/docs/404.mdx, which Starlight uses in place of its built-in 404 page (the build no longer printsEntry docs → 404 was not found).pagefind: falsekeeps it out of search results;editUrl: falsehides the "Edit page" link.Notes
The build prints a new warning:
Could not render /404 from route /[...slug] as it conflicts with higher priority route /404. This is expected: Starlight's catch-all docs route also sees the404entry, and Astro keeps Starlight's dedicated 404 route, which renders this page.dist/404.htmlcontains the custom content.Test plan
npm run buildpassesdist/404.htmlcontains the custom hero, actions and cards🤖 Generated with Claude Code