refactor(docs): move docs to /products and /realms URL namespace with 301s - #26
Merged
Merged
Conversation
… 301s Move every product's docs from realm-nested paths (/armory/aether) and bare-root paths (/lens) to a single stable /products/<id> namespace, and realm hubs to /realms/<id>. Realm stops being a URL segment and becomes a data attribute driven by the omni-api catalog. - git mv all product/realm-hub content into products/ and realms/ - rewrite internal MDX links to canonical targets - add a committed, public-only redirect map (103 entries) powering 301s in the router splat loader via resolveRedirect - re-drive sidebar realm grouping from the vendored catalog, not path - point realms.json docsUrl at /realms/<id>; retarget legacy /core/vortex - add sitemap + robots + canonical tags for the moved URLs Private/unlaunched product pages stay untracked and are scrubbed from all shippable generated files (redirect map, productRealms, root meta.json).
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Moves every product's docs from realm-nested paths (
/armory/aether) and bare-root paths (/lens) to a single stable/products/<id>namespace, with realm hubs at/realms/<id>. Realm stops being a URL segment and becomes a data attribute driven by the omni-api catalog, so re-categorizing a product no longer breaks its URL.Changes
git mvall product / realm-hub content intoproducts/andrealms/; rewrite internal MDX links to canonical targets (0 legacy links remain incontent/docs)resolveRedirectrealms.jsondocsUrl→/realms/<id>; legacy/core/vortexretargeted to/products/vortexrobots.txt, and<link rel="canonical">for the moved URLsPrivacy
Private/unlaunched product pages stay untracked and are scrubbed from every shippable generated file (redirect map,
productRealms, rootmeta.json). Verified no private slug leaks.Verification
vitest19/19,tsc --noEmitclean,biome(error-level) clean,knipcleanbun run buildsucceedsFollow-up (not in this PR)
Cloudflare Bulk Redirects import (
scripts/migration/data/cloudflare-redirects.csv) as durable edge-level backstop for inbound links.