Routing and Versioning
This guide defines how docs routes resolve in docs.browsium:
- Unversioned docs path:
/{doc-path}resolves the current release content. - Versioned docs path:
/v{version}/{doc-path}resolves a historical snapshot. - Latest alias path:
/latest/{doc-path}redirects to/v{current-version}/{doc-path}.
Canonical behavior:
- Unversioned pages canonicalize to unversioned URLs.
- Historical versioned pages canonicalize to their own versioned URLs.
- Versioned pages for the current version canonicalize to unversioned URLs.
Reference implementation lives in src/lib/routing.ts.