docs: drop /docs prefix from doc URLs#140
Merged
Merged
Conversation
Move the docs route into a `(docs)` route group with a required catch-all so docs render at site root (e.g. /architecture/resources) instead of /docs/architecture/resources. Drop the redundant docs index page since the marketing home already serves that role.
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
(docs)route group with a required[...slug]catch-all so doc pages render at site root (/architecture/resourcesinstead of/docs/architecture/resources).docsRoute,docsImageRoute,docsContentRouteand move the matchingog/andllms.mdx/route folders to drop the redundant/docssegment./docs/...links to/...across MDX content, the landing page, and the primary nav.content/docs/index.mdx(and its meta.json entry) since the marketing home now owns/.Test plan
pnpm types:checkpnpm lintpnpm build— produces 303 static pages, e.g.out/architecture/resources.html, with no/docssegment in any pathdocs.byteveda.org/taskito/architecture/resourcesafter merge