Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

Redirects

When you restructure your docs, redirects keep old links working. Define them in your docs.json:
{ "redirects": [ { "source": "/old-page", "destination": "/new-page" }, { "source": "/guides/:slug", "destination": "/docs/:slug" } ] }

Redirect types

Exact path

{ "source": "/changelog", "destination": "/updates" }

Named parameters

Capture path segments with :param and reuse them in the destination:
{ "source": "/api/:version/users", "destination": "/reference/:version/users" }

Trailing wildcard

Match any path under a prefix:
{ "source": "/old-docs/*", "destination": "/docs/:splat" }

Permanent vs temporary

By default, redirects use a 302 (temporary) status code. Set permanent: true for a 301:
{ "source": "/legacy", "destination": "/modern", "permanent": true }

Query string preservation

Query parameters from the original request are passed through to the destination URL.