Developer Portal: SEO Metadata, Server Variables, and Dynamic Redirects

The Developer Portal gives you more control over how pages appear in search results, how API server URLs are built, and how old URLs move to new ones. These features ship in Zudoku 0.93.0 and later.

SEO titles and descriptions

Set a search-friendly browser title and meta description without changing the heading or sidebar label readers see.

  • Markdown pages: Add an seo object with title and description to a page’s frontmatter. See frontmatter.
  • API tag pages: Add the x-zudoku-seo extension to a tag in your OpenAPI document. This helps when several tags share the same display name but need unique titles for search engines. See x-zudoku-seo.

Both fall back to the page’s normal title and description, and your site-wide title template still applies.

Server variables

OpenAPI server URLs with variables, such as https://{region}.api.example.com, now resolve in the API reference. When the selected server has variables, a button next to its URL opens a panel where readers pick a value from the variable’s enum list or type their own. The playground and code samples use the same values, and the portal remembers them between visits.

Dynamic redirects

Redirects in zudoku.config.ts can now match many URLs at once. Use :name for a single path segment and a trailing * for everything after a prefix, then reuse those tokens in the destination:

TypeScriptts
redirects: [
  { from: "/blog/:slug", to: "/posts/:slug" },
  { from: "/v1/*", to: "/*" },
],

Real pages in your portal still take precedence over a wildcard match. See Redirects.

Getting started

Update your project’s zudoku package with npm install zudoku@latest in the docs directory, as described in Updating the Dev Portal.