Skip to content

Changelog

Every release of the nimbus-docs package and the create-nimbus-docs scaffolder.

2026

create-nimbus-docs 0.9.0

Minor Changes

  • #310 d993e42 Thanks @MohamedH1998! - Update Astro, Markdown, API parsing, image processing, and starter dependencies. Support Satori 0.63 alongside 0.26, while retaining the declaration bundler that preserves API extension types.

    Node.js 22.23.4 or newer is now required by Nimbus and newly generated sites. Upgrade Node locally and in CI and hosting build environments before updating Nimbus. Sites using Astro below 7.2.10 must also update Astro; new starters use Astro 7.4.2.

    Keep deployment-root sitemap URLs aligned with Astro’s canonical URL for static and request-rendered pages, including sites hosted under a base path.

Patch Changes

  • #374 da9e84a Thanks @MohamedH1998! - - The starter’s agent directive and base layout cope with a site that serves no llms.txt: the directive names only the page’s Markdown, or renders nothing.

  • #342 eb60d78 Thanks @MohamedH1998! - - An API page’s Authorization section shows each scheme’s header example and scopes again, and names HTTP Bearer and Basic schemes (Authorization: Bearer <token>); its Markdown names the scheme too.

    • ApiAuthView has an optional httpScheme, the HTTP scheme lowercased (bearer, basic).
  • #341 7f146e0 Thanks @MohamedH1998! - - API pages and their Markdown show fields declared beside a union, such as a DNS record’s id, created_on and meta beside its record types: the fields first, then the options that add to them.

    • Object and array-of-object parameters list their fields, as body fields do.
    • A request or response body that isn’t an object shows its type, and its badge names its media type instead of “JSON”.
  • #331 c3d3cc6 Thanks @MohamedH1998! - - API parameter rows show their example.

    • On a split API home, a table of contents link to a later part works without script and loads in place with it.
  • #368 00e64f3 Thanks @MohamedH1998! - - An API response example is one Tab stop, not two.

    • Long field names and inline code in field descriptions wrap on narrow screens, so API pages no longer scroll sideways on a phone.
  • #347 a2a14f3 Thanks @MohamedH1998! - - getApiNav(Astro, { collection, href }) from @cloudflare/nimbus-docs/runtime returns the API sidebar opened at one API page, from any route, so a site’s own pages can show the same sidebar as its API pages.

    • ApiSidebarPanel in api-sidebar is that sidebar as one component: the filter, the tree, groups that load when opened, and open groups and scroll kept across pages. ApiLayout renders it, and a page of your own renders it with getApiNav.
    • With sidebar: "on-demand", the API sidebar can live outside ApiLayout without failing the components check.
    • A page of your own can use DocsLayout with just a title: sidebar, headings, breadcrumbs and prevNext are optional.
  • #369 645df3c Thanks @MohamedH1998! - - On narrow screens an API operation’s request sample comes right after its header, before the fields, so it’s on the first screen for most pages.

    • On wide screens the page text sits in a 40rem column beside the request sample, which starts at the top and stays pinned.
    • The description follows the page actions, and the endpoint box shows the operation’s path, which opens the full URL in a popover; copy still copies the full URL.
  • #345 dea1e3d Thanks @MohamedH1998! - - On wide screens an API page’s code rail fits the viewport: its header stays put and a long sample scrolls both ways with both scrollbars in view. Code you can scroll gets a focus ring.

    • The endpoint box cuts the server address before the path, so the path stays visible.
    • Spec descriptions get spaced headings and inline-code chips.
    • On wide screens the previous/next bar spans the body and the code rail.
    • A field with more than six allowed values lists every one on an “Allowed values” line, instead of behind a hover tooltip.
    • Request body and Returns have anchors (#request-body, #responses), and every API section heading gets a “#” link. headingAnchors() also links headings inside any data-nb-heading-anchors container.
    • CodeGroup’s copy button comes before its code in Tab order.
    • Every keyboard shortcut lives in src/lib/shortcuts.ts: change a key or set it to false to remove it. [ and ] go to the previous and next page from anywhere on the page, and readers can turn single-key shortcuts off from the search dialog. onShortcut, syncShortcutHints, the key labels and the reader’s switch are in @cloudflare/nimbus-docs/client.
    • A Switch component (nimbus-docs add switch): an on/off control. The shortcuts switch in the search dialog uses it.
  • #362 1fb505f Thanks @MohamedH1998! - - API pages show “Copy MCP URL” in their page actions when the site serves an MCP server, as docs pages do.

  • #378 5bc942d Thanks @MohamedH1998! - - Add Try it to API pages: with tryIt on an API and the api-try-it component, readers send requests from the code rail, straight from the browser or through the site’s proxy, and see the response.

    • ApiLayout and ApiCodeRail take the panel through a try-it slot.
    • A JSON body can be edited as JSON or as fields; switching keeps every change.
  • #356 0a83b03 Thanks @MohamedH1998! - - astro check runs again on new sites installed with pnpm, instead of saying @astrojs/check isn’t installed.

  • #376 28a3df0 Thanks @MohamedH1998! - - The API code rail shows the reader’s saved or linked code sample from the first paint, so it no longer resizes just after the page loads.

    • choiceStateScript in @cloudflare/nimbus-docs/runtime shows a remembered choice among server-rendered panels before the page paints. Mark the group with data-nb-choice (its storage key) and optionally data-nb-choice-param, its panels with data-nb-choice-panel and optionally data-nb-choice-kind, and its <select> with data-nb-choice-select, then render the script right after the group.
    • If you take the api-code-rail update, rename its old attributes in your own CSS, scripts and tests too.
  • #327 03c1609 Thanks @MohamedH1998! - New sites’ DocsLayout and ApiLayout put the page’s content before the sidebar in the HTML, so agents and text readers reach it first; pages look the same. The page actions row is a <nav aria-label="Page actions">, and the API union explorer’s “View X schema →” link, which repeats the branch name’s link, is marked data-markdown-ignore. nimbus-docs migrate lists them for existing sites as optional.

  • #367 4c18262 Thanks @MohamedH1998! - - Generated cURL, TypeScript and Python samples no longer need @readme/httpsnippet; only openapi-sampler is needed for generated samples, and you can uninstall @readme/httpsnippet.

    • A TypeScript sample’s options object wraps when its line would pass 80 characters, as the other samples already do.
  • #343 372b6a1 Thanks @MohamedH1998! - - A page can set its language and share-image alt text: NimbusHead, BaseLayout and DocsLayout take locale and socialImageAlt. The page’s <html lang>, og:locale and JSON-LD inLanguage follow it, and a right-to-left language sets dir="rtl", as a right-to-left config.locale now does on every page.

    • og:locale is written in Open Graph’s form (en_US) instead of as a BCP 47 tag (en-US), and left out when the tag has no two-letter region.
    • getPageLanguage() in @cloudflare/nimbus-docs/runtime gives a page’s { lang, dir }.
    • HastPluginDefinition and HastVisitorContext are exported from @cloudflare/nimbus-docs/markdown, for typing your own plugins.
  • #344 5229f0e Thanks @MohamedH1998! - - Search: each sub-result is its own option the arrow keys reach, result links leave the Tab order, Home and End move the caret unless a result is active, and a reader on a deprecated version’s page searches that version.

    • The search dialog stays open when a text selection is dragged onto its backdrop.
    • The table of contents leaves out headings without an anchor and marks the last real heading active at the bottom of the page.
    • The sidebar filter shows the groups around a matching nested group.
    • The theme toggle shows the right icon from first paint, and a dismissed banner no longer flashes before it disappears.
    • The destructive button’s text is readable in dark mode.
    • Steps counts from a Markdown list’s own start (3.).
    • A failed copy after a successful one shows the copy icon again.
    • Image zoom fills an aspect-ratio frame with a <picture>.
    • The hidden note for AI agents is no longer two invisible Tab stops.
  • #396 41680b1 Thanks @MohamedH1998! - - Try it’s authorization failure note no longer loses the top edge of its outline.

  • #396 c3d1f0a Thanks @MohamedH1998! - - tryIt.testKey is a public test key that Try it’s API key and bearer token fields start with, so a reader can send a request without entering anything.

    • Try it’s proxy refuses a request that sets X-Real-IP, True-Client-IP, Forwarded, X-Forwarded-* or CF-Connecting-IP, so a caller can’t pose as another address to the API.

nimbus-docs 0.20.0

Minor Changes

  • #364 98bb186 Thanks @MohamedH1998! - - nimbus-docs add <url> hands the Markdown recipe at an https URL to your coding agent, the same way add <feature> does, with a note saying where it came from.

  • #389 a6bede5 Thanks @MohamedH1998! - - The five agent route factories take { body }, a function from the text Nimbus would send to the text to send; the ETag and 304 are over what it returns. Use it instead of wrapping GET to change a document’s body, which kept Nimbus’s tag over its own bytes.

    • The build and nimbus-docs check warn when a route file calls an agent factory from a shape Nimbus doesn’t record, such as src/pages/[...slug].md.ts, naming the file to move the call to and the recorded route it may answer ahead of. A prerendered markdownRoute() or markdownSourceRoute() file at such a shape then fails the build. migrate carries an entry.
    • The build’s agent surfaces line counts the pages the Markdown routes cover: Page Markdown: served for 12 of 340 pages.
  • #374 da9e84a Thanks @MohamedH1998! - - Agent surfaces follow the site’s route files: delete src/pages/[...slug]/index.md.ts and no page Markdown is built, linked, advertised or negotiated; the same goes for the .mdx source, llms.txt, the section indexes and llms-full.txt, each by its own route. A Markdown route that covers part of the site publishes Markdown for that part only.

    • IndexedEntry.markdownUrl and the page helpers’ markdownUrl are undefined when no route serves them. New getPublishedLlmsUrl() returns the llms.txt a route serves for a collection, or null; getCollectionLlmsUrl() is unchanged.
    • The MCP server reads every page whether or not its Markdown is published; list_pages and get_page return markdownUrl only when it is, and get_page takes an offset to read on from a cut.
    • The build log and nimbus-docs check (nimbus/agent-surfaces) say which surfaces the routes serve, naming the route files. astro dev restarts when one of those files is added or removed.
  • #342 eb60d78 Thanks @MohamedH1998! - - An API page’s Authorization section shows each scheme’s header example and scopes again, and names HTTP Bearer and Basic schemes (Authorization: Bearer <token>); its Markdown names the scheme too.

    • ApiAuthView has an optional httpScheme, the HTTP scheme lowercased (bearer, basic).
  • #341 7f146e0 Thanks @MohamedH1998! - - API pages and their Markdown show fields declared beside a union, such as a DNS record’s id, created_on and meta beside its record types: the fields first, then the options that add to them.

    • Object and array-of-object parameters list their fields, as body fields do.
    • A request or response body that isn’t an object shows its type, and its badge names its media type instead of “JSON”.
  • #375 41a92a6 Thanks @MohamedH1998! - - Request-rendered API collections no longer bake their pages’ Markdown. The .md route, Accept: text/markdown and MCP get_page render it on request from the page record the server already holds, through the serialization the build uses, so the bytes equal the file a build-rendered site writes. Docs pages, static sites and "build" collections are unchanged.

    • A page’s Markdown response carries an ETag of its bytes, and a request that prefers Markdown is answered without rendering the page’s HTML.
    • On a site whose llms.txt, section llms.txt and llms-full.txt routes render on request, those documents are no longer baked either: the server makes the indexes from the build’s page list when asked, and llms-full.txt becomes an index of per-section parts, each assembled on its first request and kept for the build’s life; a section over the 25 MiB part limit answers with an index of its sub-sections, sized from the build’s records (exact for built bodies, an estimate for pages made on request) without rendering a page, and a part that proves bigger while assembling still stops at the limit. Build-rendered routes keep writing the same files.
    • A versioned API gets one llms-full part per version on such a site: /<api>/llms-full.txt for the default and, for each other version, the same URL with the version in the query (?version=v1, or the family’s own parameter) or, for path-versioned families, in the path right after the API’s mount (/api/v1/tags/llms-full.txt). Query-versioned pages beyond the default are in no index and at no .md URL, as before.
  • #347 a2a14f3 Thanks @MohamedH1998! - - getApiNav(Astro, { collection, href }) from @cloudflare/nimbus-docs/runtime returns the API sidebar opened at one API page, from any route, so a site’s own pages can show the same sidebar as its API pages.

    • ApiSidebarPanel in api-sidebar is that sidebar as one component: the filter, the tree, groups that load when opened, and open groups and scroll kept across pages. ApiLayout renders it, and a page of your own renders it with getApiNav.
    • With sidebar: "on-demand", the API sidebar can live outside ApiLayout without failing the components check.
    • A page of your own can use DocsLayout with just a title: sidebar, headings, breadcrumbs and prevNext are optional.
  • #369 645df3c Thanks @MohamedH1998! - - On narrow screens an API operation’s request sample comes right after its header, before the fields, so it’s on the first screen for most pages.

    • On wide screens the page text sits in a 40rem column beside the request sample, which starts at the top and stays pinned.
    • The description follows the page actions, and the endpoint box shows the operation’s path, which opens the full URL in a popover; copy still copies the full URL.
  • #345 dea1e3d Thanks @MohamedH1998! - - On wide screens an API page’s code rail fits the viewport: its header stays put and a long sample scrolls both ways with both scrollbars in view. Code you can scroll gets a focus ring.

    • The endpoint box cuts the server address before the path, so the path stays visible.
    • Spec descriptions get spaced headings and inline-code chips.
    • On wide screens the previous/next bar spans the body and the code rail.
    • A field with more than six allowed values lists every one on an “Allowed values” line, instead of behind a hover tooltip.
    • Request body and Returns have anchors (#request-body, #responses), and every API section heading gets a “#” link. headingAnchors() also links headings inside any data-nb-heading-anchors container.
    • CodeGroup’s copy button comes before its code in Tab order.
    • Every keyboard shortcut lives in src/lib/shortcuts.ts: change a key or set it to false to remove it. [ and ] go to the previous and next page from anywhere on the page, and readers can turn single-key shortcuts off from the search dialog. onShortcut, syncShortcutHints, the key labels and the reader’s switch are in @cloudflare/nimbus-docs/client.
    • A Switch component (nimbus-docs add switch): an on/off control. The shortcuts switch in the search dialog uses it.
  • #331 c3d3cc6 Thanks @MohamedH1998! - - A parameter’s own example, or the first of its examples with an inline value, now reaches its API page and Markdown, ahead of its schema’s.

    • On a split API home, ApiHome.anchorParts says which part holds each heading, and TOCItem takes an optional href.
    • homePartTarget() in @cloudflare/nimbus-docs/client tells which heading a click on the home is going to.
  • #378 5bc942d Thanks @MohamedH1998! - - Add Try it to API pages: with tryIt on an API and the api-try-it component, readers send requests from the code rail, straight from the browser or through the site’s proxy, and see the response.

    • ApiLayout and ApiCodeRail take the panel through a try-it slot.
    • A JSON body can be edited as JSON or as fields; switching keeps every change.
  • #376 28a3df0 Thanks @MohamedH1998! - - The API code rail shows the reader’s saved or linked code sample from the first paint, so it no longer resizes just after the page loads.

    • choiceStateScript in @cloudflare/nimbus-docs/runtime shows a remembered choice among server-rendered panels before the page paints. Mark the group with data-nb-choice (its storage key) and optionally data-nb-choice-param, its panels with data-nb-choice-panel and optionally data-nb-choice-kind, and its <select> with data-nb-choice-select, then render the script right after the group.
    • If you take the api-code-rail update, rename its old attributes in your own CSS, scripts and tests too.
  • #327 03c1609 Thanks @MohamedH1998! - New sites’ DocsLayout and ApiLayout put the page’s content before the sidebar in the HTML, so agents and text readers reach it first; pages look the same. The page actions row is a <nav aria-label="Page actions">, and the API union explorer’s “View X schema →” link, which repeats the branch name’s link, is marked data-markdown-ignore. nimbus-docs migrate lists them for existing sites as optional.

  • #310 d993e42 Thanks @MohamedH1998! - Update Astro, Markdown, API parsing, image processing, and starter dependencies. Support Satori 0.63 alongside 0.26, while retaining the declaration bundler that preserves API extension types.

    Node.js 22.23.4 or newer is now required by Nimbus and newly generated sites. Upgrade Node locally and in CI and hosting build environments before updating Nimbus. Sites using Astro below 7.2.10 must also update Astro; new starters use Astro 7.4.2.

    Keep deployment-root sitemap URLs aligned with Astro’s canonical URL for static and request-rendered pages, including sites hosted under a base path.

  • #343 372b6a1 Thanks @MohamedH1998! - - A page can set its language and share-image alt text: NimbusHead, BaseLayout and DocsLayout take locale and socialImageAlt. The page’s <html lang>, og:locale and JSON-LD inLanguage follow it, and a right-to-left language sets dir="rtl", as a right-to-left config.locale now does on every page.

    • og:locale is written in Open Graph’s form (en_US) instead of as a BCP 47 tag (en-US), and left out when the tag has no two-letter region.
    • getPageLanguage() in @cloudflare/nimbus-docs/runtime gives a page’s { lang, dir }.
    • HastPluginDefinition and HastVisitorContext are exported from @cloudflare/nimbus-docs/markdown, for typing your own plugins.
  • #344 5229f0e Thanks @MohamedH1998! - - Search: each sub-result is its own option the arrow keys reach, result links leave the Tab order, Home and End move the caret unless a result is active, and a reader on a deprecated version’s page searches that version.

    • The search dialog stays open when a text selection is dragged onto its backdrop.
    • The table of contents leaves out headings without an anchor and marks the last real heading active at the bottom of the page.
    • The sidebar filter shows the groups around a matching nested group.
    • The theme toggle shows the right icon from first paint, and a dismissed banner no longer flashes before it disappears.
    • The destructive button’s text is readable in dark mode.
    • Steps counts from a Markdown list’s own start (3.).
    • A failed copy after a successful one shows the copy icon again.
    • Image zoom fills an aspect-ratio frame with a <picture>.
    • The hidden note for AI agents is no longer two invisible Tab stops.
  • #396 c3d1f0a Thanks @MohamedH1998! - - tryIt.testKey is a public test key that Try it’s API key and bearer token fields start with, so a reader can send a request without entering anything.

    • Try it’s proxy refuses a request that sets X-Real-IP, True-Client-IP, Forwarded, X-Forwarded-* or CF-Connecting-IP, so a caller can’t pose as another address to the API.

Patch Changes

  • #385 e9ad838 Thanks @sansynx! - add exits with an error when a component’s npm dependencies fail to install, so scripts can detect a partial install.

  • #351 769f831 Thanks @MohamedH1998! - - add skips a dependency the site already has at the registry’s version, and installs a pinned one with its exact version.

    • A failed install or resolve ends with the error mark in a terminal, and prints as an error without one.
  • #327 03c1609 Thanks @MohamedH1998! - An API page’s Markdown carries what the page shows: the fields of named and discriminator-mapped union branches, each operation’s method and path on tag pages, the full request URL on operation pages, and, on the API home, every endpoint and webhook under its section. An API with more than 150 endpoints lists each section with its endpoint count instead, so its home stays readable in one go. It words them as the page does: “One of the following:”, array of X, and maximum: 500 · minimum: 1 · default: 50. Nested types such as array<array<number>> no longer lose their brackets.

    With schemaPages: true, a field that chooses between named schemas, such as a DNS record that is an A, MX or CNAME record, still previews them, and a named schema anywhere else in a field, such as an id-or-object field, links to its schema page instead of repeating it. Large APIs with schema pages build several times faster and smaller. Without schema pages, previews are as they were: they’re the only place those fields appear.

  • #368 00e64f3 Thanks @MohamedH1998! - - An API response example is one Tab stop, not two.

    • Long field names and inline code in field descriptions wrap on narrow screens, so API pages no longer scroll sideways on a phone.
  • #398 2467a04 Thanks @MohamedH1998! - - nimbus-docs check and add adapter-cloudflare accept @astrojs/cloudflare 14.4 instead of asking for 14.3.

  • #346 bdd81f7 Thanks @MohamedH1998! - - In astro dev, new pages, and collections added to content.config.ts, reach pages, Markdown, the sidebar and llms.txt without a restart.

    • A site whose content.config.ts declares no docs collection builds with the starter’s docs route, which serves no pages.
  • #386 e564b45 Thanks @MohamedH1998! - - astro dev no longer recompiles the whole content store as a module after each save, which took seconds on sites with a lot of text.

  • #383 673d85d Thanks @MohamedH1998! - - Saving a page in astro dev no longer reloads every module of the site or renders every page’s Markdown again, so large sites answer the next request much sooner.

  • #386 bb935be Thanks @MohamedH1998! - - astro dev no longer slows down on large sites when many files change at once: a file event that changes no page copies nothing. Part of #379.

    • A dev server stopped while writing its Markdown files restarts cleanly, instead of answering every request with an asset collision error.
    • astro sync no longer renders every page to collect headings it doesn’t use, so it finishes sooner on large sites.
  • #352 596a315 Thanks @MohamedH1998! - - lint and check skip re-reading the Astro config when it hasn’t changed since the last build: about 300 ms faster per lint run.

  • #353 1115c05 Thanks @MohamedH1998! - - With nested llms.txt sections, an API operation is listed in its resource’s or tag’s index, as in the sidebar, instead of in a section named after its URL folder (such as methods).

  • #355 0d7f997 Thanks @MohamedH1998! - - llms.txt, the section indexes and llms-full.txt list pages and sections in the sidebar’s order (sidebar.order, then label) instead of by URL. Pages the sidebar hides follow, by URL.

  • #380 7ace7e0 Thanks @MohamedH1998! - - A Markdown, llms.txt or llms-full.txt request that carries If-None-Match with the document’s current ETag is answered 304 Not Modified, on request-rendered routes and, on Cloudflare, for the baked files too. A mount’s own llms.txt now carries an ETag like the others.

  • #354 5028b19 Thanks @MohamedH1998! - The Markdown style lint rules run about 9× faster, and the package no longer bundles remark-lint.

  • #349 d056733 Thanks @MohamedH1998! - - outdated no longer asks to record a review that matches the installed prerelease.

    • With a preview package on a site scaffolded from a release, outdated says the starter comparison is with the latest released tag, so the preview’s starter changes don’t show yet.
  • #367 4c18262 Thanks @MohamedH1998! - - Generated cURL, TypeScript and Python samples no longer need @readme/httpsnippet; only openapi-sampler is needed for generated samples, and you can uninstall @readme/httpsnippet.

    • A TypeScript sample’s options object wraps when its line would pass 80 characters, as the other samples already do.
  • #381 8706622 Thanks @MohamedH1998! - - Generated sample URLs are written as browsers send them: a default port such as :443 is dropped, IP shorthand is expanded, a server URL’s own query is kept as written, and query parameters keep the spec’s order.

    • A TypeScript sample’s options object wraps when its whole line passes 80 characters.
    • A sample with both a Cookie header and a cookie API key sends both cookies in one header, in every language.
  • #364 d7609ca Thanks @MohamedH1998! - - A sidebar link to a page with sidebar.hidden no longer warns that it matches no entry.

  • #365 c4c8fdf Thanks @MohamedH1998! - - A relative link from a source collection’s page to a Markdown file its pattern excludes stays as written, with a warning, instead of becoming a URL with no page.

  • #366 f7a6af2 Thanks @MohamedH1998! - - Upgrading Nimbus reuses the Vite your Astro already has instead of installing a second copy, which broke type checks of astro.config.mjs.

    • migrate --yes records the reviewed version without reformatting the rest of nimbus.json.
    • With sidebar: "on-demand", the build accepts an ApiLayout that renders the sidebar through a component of your own; it still stops the starter’s pre-on-demand layout, whose groups wouldn’t open.

nimbus-docs 0.19.4

Patch Changes

  • #338 fb01af8 Thanks @MohamedH1998! - - API pages’ Markdown versions start with a # Title line and no longer repeat the description in their frontmatter.

    • llms-full.txt no longer repeats an API page’s description above its Markdown.
    • Headings in API descriptions keep their structure, demoted below their section, instead of showing as escaped \### text.
    • The code copy button comes before its code in Tab order.
    • Following a link to a field inside a collapsed section scrolls once, to the field.
  • #336 41ade23 Thanks @MohamedH1998! - API builds that keep .nimbus/cache between runs only highlight the code samples that changed.

  • #333 fdb7ba0 Thanks @MohamedH1998! - Large API sites build faster: each repeated description and code sample is rendered once per build.

  • #335 993d5c1 Thanks @MohamedH1998! - shiki.css no longer keeps code styles from earlier releases when CI keeps .nimbus/cache between builds. The first build after upgrading prepares every API version again.

nimbus-docs 0.19.3

Patch Changes

  • #318 728075d Thanks @MohamedH1998! - A $ref to an http(s) URL, such as one inside an example value, no longer stops an API’s prepared pages from being reused between builds. Nimbus never fetches these URLs. References to other local files still prepare the API on every build.

  • #330 549917d Thanks @MohamedH1998! - API pages and their Markdown read union branches more clearly:

    • An untitled branch that is itself a union is labelled Option N.
    • Branches that share a title are numbered (Destination 1, Destination 2).
    • An inline scalar branch shows its literals and description.
    • A discriminator union lists the branches no mapping value selects.
    • A field typed as a named union or a named array schema, or where a self-reference stops, shows the schema’s name (linked when it has a page).
  • #332 b80ac5b Thanks @MohamedH1998! - - An x-nimbus-order Nimbus ignores now warns: one that isn’t a number, or one anywhere but a path operation.

    • API warnings and errors point at their place in the spec with JSON pointers that resolve (#/paths/~1pets/get).
    • Each field list cut at the 25,000-field ceiling gets its own warning, naming the list.
  • #317 ca6ec50 Thanks @MohamedH1998! - astro dev with the Cloudflare adapter and a base serves bundle: false API pages and agent endpoint files, instead of failing with “build output file … returned 404”.

  • #320 d9337b7 Thanks @MohamedH1998! - /llms.txt gives the site description as a > summary, and each section llms.txt quotes its index page’s description the same way.

  • #320 d9337b7 Thanks @MohamedH1998! - Root-relative links and images in Markdown versions and llms-full.txt are absolute URLs on site, so they resolve when the file is read away from the site.

  • #320 d9337b7 Thanks @MohamedH1998! - A request-rendered route that finds no page, such as the starter’s docs catch-all, answers a request with Accept: text/markdown with a 404 and a short Markdown body linking /llms.txt and the sitemap.

  • #324 32949c6 Thanks @MohamedH1998! - The remote MCP server refuses a JSON-RPC batch with one 400 error instead of running up to 100 calls; send one message per request.

  • #325 35c2a86 Thanks @MohamedH1998! - A Markdown table’s scroll box is a Tab stop in every browser, so keyboard users can scroll a wide table in Safari too.

create-nimbus-docs 0.8.3

Patch Changes

  • #332 b80ac5b Thanks @MohamedH1998! - --template api names the site after its spec: title and description come from the spec’s info.

  • #330 549917d Thanks @MohamedH1998! - The API field explorer drops the object or object tooltip, lists every branch of a discriminator union, shows a scalar branch’s literals, names a field’s schema (a named array schema as Name (array)), and opens a union of unions to its first fields.

  • #325 35c2a86 Thanks @MohamedH1998! - Typing in or clearing the search box cancels a search still in flight, so its results never replace what you typed since.

nimbus-docs 0.19.2

Patch Changes

  • #309 6c20aff Thanks @MohamedH1998! - API pages show every union branch. Inline branches open with their fields at <base>.<position> (source.2.iban), anchored and citable. A branch that is itself a union carries variant.union, and a named branch carries name and title beside label. Field nesting no longer stops at six levels; a list stops at 25,000 fields with a build warning. x-nimbus-order on an operation orders its section.

    ApiFieldView.anchor is now optional: it is set only on the page that owns the field, so render id={field.anchor}. A custom component that requires a string needs updating.

  • #307 adbb51d Thanks @MohamedH1998! - A <link rel="canonical"> in a page’s or the site’s head is the page’s only canonical: Nimbus no longer adds its own beside it, and og:url and the structured data follow it.

  • #308 c29ffa5 Thanks @MohamedH1998! - With Astro’s experimental incremental build, a page is rebuilt when its sidebar, breadcrumbs or prev/next links change, not only when its own file does. A page whose loader gives no digest is rendered every build. The first build after upgrading renders every page once.

create-nimbus-docs 0.8.2

Patch Changes

  • #309 6c20aff Thanks @MohamedH1998! - The starter’s union explorer opens nested unions, labels anyOf and oneOf, shows a branch’s title, and anchors whatever the page data anchors. ApiFieldRow and ApiUnionExplorer no longer take an anchored prop.

nimbus-docs 0.19.1

Patch Changes

  • #293 ff3ad76 Thanks @MohamedH1998! - Authored code samples render without openapi-sampler and @readme/httpsnippet: set samples.generate: [] to publish authored samples only, or one warning says what to install. Authored samples highlight in every language Shiki bundles. A spec with a schema property named $ref builds and publishes without reference warnings, and a $ref whose value is not a string is reported by its location.

  • #293 85366b6 Thanks @MohamedH1998! - Cheaper API builds and a lighter Worker. The spec is parsed once for the walk and its ref-preserving copy, with a second parse only if the parser ever resolves in place. For an API with bundle: false, the “Prepared API pages” line says what changed when a version is rebuilt. Agent files are staged by clone and the search inventory reads the Markdown twins instead of rendering every page again. A server build reads the agent-endpoint manifest from _nimbus/agent-endpoint-assets/manifest.json instead of inlining it, and staging fails with a clear error if that file would exceed Cloudflare’s 25 MiB static file limit.

  • #293 a806887 Thanks @MohamedH1998! - nimbus-docs check no longer asks for rendering.collections when the api config is computed. It takes a zero-argument apiCollection() registration as an API collection, skips matching registrations against api entries, and says so in a “needs a build” note; the build enforces both.

  • #135 1ee21b9 Thanks @dependabot! - Update the interactive prompts to @clack/prompts 1.8.

  • #300 678d1e9 Thanks @MohamedH1998! - The dev server works with Astro 7.3.3: content edits refresh Markdown, llms.txt and discovery files again, and editing astro.config re-indexes collections before the restarted server serves.

  • #293 796f348 Thanks @MohamedH1998! - Add routes.sections: "hierarchical" so an API collection’s tag pages are served at the tag hierarchy’s path (/api/zero-trust/devices/) instead of tags/<segment>/, and routes.tagSegments to set one tag’s URL segment. Opt-in under resource-action-v2; coordinates and operation URLs do not change.

create-nimbus-docs 0.8.1

Patch Changes

nimbus-docs 0.19.0

Minor Changes

  • #265 2440889 Thanks @MohamedH1998! - - agents: { discovery: false } leaves origin-root agent discovery to the site that owns the domain: no /.well-known/ard.json, ai-catalog.json or api-catalog, no rel="ard" or rel="api-catalog" homepage links, and your own .well-known files are kept.

  • #283 ed581a0 Thanks @MohamedH1998! - - An API reference can be the whole site: a route at src/pages/[...slug].astro serves the API collection at the root. Every URL Nimbus builds for it is root-relative: pages, the version picker, the sidebar, breadcrumbs, Markdown versions, llms.txt, the sitemap, openapi.json and the API catalog.

    • A site whose content.config.ts declares no docs collection no longer queries one for the sidebar, so Astro’s “collection does not exist” warning is gone. A sidebar that names docs still queries it.
  • #273 352a245 Thanks @MohamedH1998! - A redesigned API reference:

    • The API home lists every endpoint, grouped by x-tagGroups, with a filter; large specs load in parts as you scroll. The API route serves the later parts at /api/index/2/ and on, noindex and left out of the sitemap and search; it takes the part size as homeChunkSize in both getApiStaticPaths and getApiRoute (without it, the home is one page), and getApiRoute returns the parts as home.
    • Section pages list their endpoints name first, with the method and path beneath.
    • The API version picker sits in the header, at every width.
    • Code rail lines sit on whole pixels, with quieter line numbers; section titles are in full ink.
    • The API sidebar’s rows match the docs sidebar’s.
    • Section page operations gain method, path, description and deprecated, and the root page gains an index of every endpoint.
    • getApiRoot reads an API version’s root page from any route; chunkApiIndex and apiIndexRows split and flatten its index.

    nimbus-docs migrate lists the optional steps to adopt it.

  • #274 961e85d Thanks @MohamedH1998! - - New sites’ share cards show the site’s logo, the page’s section and its title, on white. A long title shrinks before it’s cut and stays within three lines.

    • The card’s look lives in the site’s src/pages/og/_card.ts; the logo is drawn once, in src/components/logo.ts, for the header and the cards.
    • @cloudflare/nimbus-docs/og fits text by measuring it and renders cards to PNG. It needs satori and @resvg/resvg-js, optional peers.
    • getPageSection(page) returns the label of a page’s nearest parent, from the sidebar for docs pages and from the spec for API pages.
  • #274 91eb2e9 Thanks @MohamedH1998! - - Card takes href: the whole card becomes the link.

    • Diagram buttons and controls keep their 32px height inside prose.
    • PUT and PATCH method chips meet 4.5:1 contrast in light mode.
    • The version picker and the API field toggle are named by their visible text.
  • #288 aafc259 Thanks @MohamedH1998! - - docsCollection({ markdownFields }) writes the named frontmatter fields into each page’s .md and .mdx.

    • NestedContent shows another page’s content inside this one, its headings below yours and its section links pointing back to its page.
    • nimbus-docs add changelog builds release notes: 10 releases a page, a page per release, and an @astrojs/rss feed. Existing changelogs keep working (review entry changelog-release-notes).
  • #267 eb1a3a6 Thanks @MohamedH1998! - - A collection is served where its route file is: src/pages/products/sdk/[...slug].astro serves sdk at /products/sdk, and every URL Nimbus builds follows: pages, sidebar, Markdown versions, llms.txt, sitemap, search, social cards, and for an API its versions, openapi.json and catalog entry. Sites whose route folders match their collection names build the same output.

    • getCollectionUrl(collection) returns where a collection is served, for links in components. A name that isn’t a page collection throws.
    • nimbus-docs check lists where each collection is served when a route moves one; check --json always includes it.
    • Sites that build broken URLs today now fail with an error naming the file and the fix: several routes for one collection with none at its default URL, two collections on one URL, a collection served only from dynamic folders, a docs or version route away from its URL, a page under another collection’s moved URL, a route helper in a route whose parameter isn’t slug ([...path].astro), or a route helper running in a route its collection isn’t served from.
    • A sidebar prefix for a collection served by a route helper is deprecated: the route sets the URL.
    • getIndexedTopLevel() groups a moved collection under its URL: a group’s slug and label can contain / (products/sdk). Components that build /${slug}/llms.txt or show label should expect it.
    • Two new warnings, from the build and check: a second static route for a collection that’s already served elsewhere (its pages duplicate the collection’s), and a helper route in a nested folder whose getStaticPaths Nimbus can’t read.
    • nimbus-docs lint follows the pages Astro writes for a dynamic redirect ("/sdk/[...slug]": "/products/sdk/[...slug]") instead of taking them for pages, so a redirect to a missing page is reported and nimbus/redirected-link finds links through it.
    • nimbus-docs lint suggests the new URL for a link into a moved collection (/sdk/setup → /products/kit/setup), and never suggests the site root or an error page as a near-match. Builds record each collection’s URL in .nimbus/routes.json for this.
    • nimbus-docs check checks collections added since the last build, alongside the ones that build recorded.
  • #268 4b77047 Thanks @MohamedH1998! - - Request-rendered collections are served where their route file is too, nested folders, kept copies and base included. A request-rendered route under a static folder no collection is served from returns not found and logs why; one under a dynamic folder ([locale]/sdk/) isn’t checked, since its folder depends on the URL. A request-rendered collection’s index page is listed in the sitemap, search and route checks at the collection’s URL (/products/kit/), not /products/kit/index/.

    • In astro dev, moving, adding or removing a collection’s route file restarts the server onto the new URLs and logs the redirect to add. Editing a route’s template doesn’t restart.
    • With the nested [...section]/llms.txt route, a collection at a nested URL is linked from the llms.txt of the section above it, not only from the root llms.txt.
  • #253 3fa357f Thanks @MohamedH1998! - - A page collection’s files can live anywhere: a glob over a folder outside src/ gets callouts, components, citations, links, collision checks and lint like a page under src/content.

    • A loader with no files gets citations, links, Markdown versions, llms.txt and URL collision checks through withNimbusMarkdown().
    • Two files with one slug fail the build in any collection, .md files included; in collections made with the factories, so does a byte-identical copy.
    • sources in the Nimbus config checks out another git repository at build time; docsCollection({ source, base }) and api[].spec: { source, path } read it.
    • A pinned commit is fetched once and builds offline; a branch builds from its last snapshot when the remote is down.
    • NIMBUS_BUILD_ONLY fetches only the sources its collections and api entries read; astro dev, astro sync and astro preview start without a source they can’t fetch, leaving its collections empty, while astro build fails naming what reads it.
    • A repo with a token or password in it is refused; credentials come from git.
    • Pages from a source get the source’s editPattern and no git date.
    • A source page with no frontmatter title takes its first heading, else its file name; the sidebar never shows a blank label.
    • Relative links between a source collection’s pages (2-options.md#signal) become page URLs; a link to a file the collection doesn’t publish stays as written, with a warning.
    • A ref that starts with refs/ (such as refs/pull/12/head) is used as written.
    • nimbus-docs check reports nimbus/source-floating-ref and nimbus/source-unreferenced.
    • nimbus-docs lint reads source snapshots and reports problems by source and repository path; --fix never writes them.
    • nimbus-docs lint says how many Markdown (.md) pages it leaves out.
    • nimbus-docs add source <name|url> adds a content source: git (github, gitlab, bitbucket), notion, or a guide for any provider from its docs URL.
    • add source notion has your agent write a Notion loader into the site, with drafts, slugs and ordering from the database’s properties. It warns when no row publishes, naming the status values the database uses.
    • list --type source lists the sources.
    • Each source guide carries its own route, rendering and sidebar steps, ends with what to report to the user, and prints from its first heading.
  • #270 0b30e24 Thanks @MohamedH1998! - - A collection served inside an autogenerated sidebar folder appears in that folder, as a group linking its landing page, so breadcrumbs and previous and next links cross between them. Its index page sets the group’s label and order, shows only its landing (hideChildren) or leaves it out (sidebar.hidden); naming it in sidebar.items, or linking to its URL there, places it by hand; a labeled { autogenerate: { collection } } group for one links its landing page and holds the collections inside it. A page the sidebar leaves out keeps the breadcrumbs of the folders above it, and a crumb, titled like the page, for each page between there and itself. A docs folder whose only page is its index becomes a group to hold such a collection, keeping the page’s label. Sites without such a collection build the same sidebar.

  • #284 f256109 Thanks @MohamedH1998! - - outdated and diff compare a site scaffolded with an API reference against the starter it came from: the API route and config read as the starter’s, and the spec as your own.

  • #244 17bf1ce Thanks @MohamedH1998! - - NIMBUS_BUILD_ONLY=docs-es builds one collection, or a comma-separated set, and leaves the others empty; dev, sync and check ignore it with one notice.

    • A slice without the docs collection writes its sitemap, search bundle, stylesheet, assets and llms-full.txt under its prefix, and drops the root files the root slice serves.
    • The root slice’s llms.txt lists every collection’s llms.txt, and search merges the other slices’ indexes at runtime.
    • nimbus-docs lint checks links into other slices against the previous build’s routes, as warnings.
    • A slice build fails on an unknown collection, and on docs version collections split across slices. Slices work under Astro’s base: every URL a slice serves and advertises is under it.
    • The route list nimbus-docs lint checks against reads _redirects where the Cloudflare adapter moves it when the site has a base, so redirects stay known to link checking.
    • searchIndex in virtual:nimbus/config names the search bundles as served URLs, base included. The starter’s search provider loads its slice’s bundle and merges the others.
    • A guide, “Build one locale or one part”, with the Worker and zone routes per slice and a workflow that builds the slice a pull request touched.
  • #272 9a65f9f Thanks @MohamedH1998! - New sites start on the redesigned starter:

    • A fill-in Introduction as the home page, a Writing pages guide and a Components page replace the sample pages and the landing page.
    • A new type scale, steel accent, code blocks, sidebar and header logo.
    • One pagination bar for the previous and next pages; with focus in the bar, [ and ] move between them.
    • Every component part has a data-slot to style it by, except sidebar rows, which stay bare so large sidebars stay light.
    • Components wrap long words, URLs and labels instead of overflowing on phones.
    • Text meets 4.5:1 contrast in light mode, Steps are a real list, manual Tabs render one tab list and pair each tab with its panel.
    • Pages mirror correctly in right-to-left languages; code stays left to right.
    • On phones, sites with several sections show them as tabs under the header.
    • Thin, theme-coloured scrollbars.
    • PageActions renders extra actions passed as children; the layout passes the Copy MCP URL action that way.

    Existing sites keep their look. nimbus-docs migrate lists optional steps to adopt it, the lighter sidebar rows, and the new favicons and asset caching. The registry adds a variants lib that Badge and Button install with them.

  • #243 5604125 Thanks @MohamedH1998! - - agents: { mcp: true } serves a remote MCP server at /mcp with list_pages and get_page over the published Markdown, plus a Server Card at /mcp/server-card, a line in llms.txt and an entry in the AI catalog. It needs a server adapter and @modelcontextprotocol/server; nimbus-docs check reports a missing SDK.

    • Docs pages in the starter show a “Copy MCP URL” page action that copies the server URL when the server is on. On an existing site, run nimbus-docs diff src/components/ConnectMcp.astro --apply and nimbus-docs diff src/components/connect-mcp.client.ts --apply, then pass {capabilities.mcpUrl && <ConnectMcp />} to <PageActions> in src/layouts/DocsLayout.astro, as the Remote MCP server guide shows.
  • #278 b6d4837 Thanks @MohamedH1998! - - Route files say how they render. nimbus-docs check reports each route Nimbus manages whose file disagrees with rendering, and check --fix rewrites it: the prerender line, getStaticPaths on built routes only, and the collection name in a collection route’s page helper. Without rendering, Nimbus builds every one of these routes ahead of time, a collection route such as src/pages/sdk/[...slug].astro included. rendering still wins at build, which now warns once and lists the files.

    • A built dynamic route with no getStaticPaths fails the build, naming the file; Astro can’t build it.
    • The page helpers take the collection as a second argument, such as getCollectionPage(Astro, "sdk") or getApiRoute(Astro, "api", { homeChunkSize }), so a request-rendered route needs no getStaticPaths to say which collection it serves. A route whose getStaticPaths and helper name different collections fails with nimbus/collection-route-mismatch.
    • add adapter-* updates route files after setting rendering, and its recipes run check --fix.
    • outdated and diff compare starter route files in the site’s own mode, so a route check --fix edited doesn’t read as a local change.
    • The starter’s Markdown, llms.txt and docs page routes drop export const prerender = true; the site’s output and rendering decide how they render. A scaffold with a server adapter writes its route files in the mode its rendering gives them.
  • #277 6c4a633 Thanks @MohamedH1998! - - Previous and next links never point a page at itself, when the sidebar reaches a page twice: a group landing that is also a child link, a page linked from two groups, or an anchor link after its page.

    • An isolated sidebar (isolate.boundaries) starts with the group’s landing page instead of dropping it, labeled “Overview” under indexDisplay: "overview-leaf" unless the page sets its own sidebar.label. The landing page gains previous and next links.
    • A labeled { autogenerate: { collection } } group starts with the collection’s landing page at any depth. A collection served one segment deep, such as /sdk, now gets the landing row (“Overview”), previous and next links, and a linked breadcrumb; set sidebar.group.hideIndex: true on its index page to leave it out.
    • On request rendering, /index, /<collection>/index and /<version>/index return 404 instead of a copy of the landing page, as built pages do.
    • nimbus-docs check stops listing and checking a collection deleted since the last build, and notes once that the last build’s collection list is out of date.
    • API descriptions keep text the HTML sanitizer doesn’t know as a tag, such as metadata.<key>, as text instead of dropping it. <script> is still removed, and other unknown tags render as inert text.
    • Code samples for an apiKey in a cookie send it as a cookie, such as curl’s --cookie 'session=<session>', instead of as a header.
  • #260 0c31e84 Thanks @MohamedH1998! - - add --overwrite without a terminal keeps components you’ve edited and exits 1; --overwrite --yes replaces them and says how many carried edits.

    • add a b installs both; an unknown slug stops before anything is installed.
    • check says an optional upgrade stays listed until migrate records the version as reviewed.
    • New pnpm sites build pages with local images: sharp is a starter dependency.
    • astro build --root <site> from another folder finds the social-card font.

Patch Changes

  • #266 662c1c8 Thanks @MohamedH1998! - - add adapter-cloudflare in a coding agent session wires the adapter as it does from a shell; the agent gets the recipe only where the CLI can’t edit the config safely.

    • check reports a missing @scalar/openapi-parser for sites with API collections, and check --fix --yes installs it.
    • Without a terminal, check suggests --fix --yes or editing by hand, whichever --fix can do; migrate --print on a preview build says reviews start on a release.
  • #273 87f4536 Thanks @MohamedH1998! - - The API sidebar lists webhooks in a Webhooks group at the end.

    • A webhook page no longer shows the API’s own top-level security as the receiver’s auth.
  • #288 aafc259 Thanks @MohamedH1998! - - In dev on a Cloudflare site that prerenders with Node, a page’s Markdown version follows edits to the page and to content.config.ts instead of failing until a restart.

  • #284 f256109 Thanks @MohamedH1998! - - astro dev no longer warns that the docs collection doesn’t exist on a site without one.

  • #287 8a43a6c Thanks @MohamedH1998! - Error messages link to the docs pages’ new addresses on nimbus-docs.com.

  • #263 46ecb84 Thanks @MohamedH1998! - - nimbus/image-ref checks image paths under Astro’s base: an inline image needs the base written and a reference definition must not repeat it. lint --fix repairs both when the file is in public/. Its ignore patterns are written without the base, as for links.

    • Under a base, nimbus-docs lint now reports inline images written without it, such as /arch.png, which can fail CI where it passed before. Those images return 404 on the deployed site.
  • #271 f491c71 Thanks @mvvmm! - - astro dev renders a page’s headings when the page is first requested, not every page at content sync. Startup and each file save no longer scale with the number of docs.

    • Builds are unchanged.
  • #264 68b9f7c Thanks @MohamedH1998! - - The API catalog and ard.json list every visible API version: a query-addressed version at its query URL, and the non-default versions of a bundle: false collection, whose specs are now published too.

    • Homepage Link headers advertise only API family defaults and link to the complete catalog, keeping response headers independent of version count.
    • AgentApiPublication.markdownUrl is now optional, because versions without a Markdown reference have none. Code that reads it from @cloudflare/nimbus-docs/types or virtual:nimbus/agent-capabilities must handle undefined.
  • #252 a7ea698 Thanks @sansynx! - nimbus-docs check now reports a missing server adapter for agents.mcp, request rendering and api with bundle: false, and a missing MCP SDK, before a build. Adapter errors name every supported host instead of suggesting Cloudflare first. The placeholder site warning names Cloudflare Workers only when no other adapter is configured, so a Node site with a leftover wrangler.jsonc no longer gets it. The MCP server keeps serving requests on a connection after it rejects an oversized body. Preview builds report starter freshness and diffs correctly, add adapter-* keeps the adapter’s version range, and agents: { MCP: true } suggests mcp.

  • #282 e983040 Thanks @MohamedH1998! - - The package READMEs describe Nimbus as the authoring tool for docs, with the CLI by task and the scaffolder’s options.

  • #285 d45764d Thanks @MohamedH1998! - - migrate’s redesigned-starter step lists src/components/logo.ts, which the new Logo.astro imports.

    • Search results for API pages keep an operation’s name, method and path apart, and no longer index the API home filter’s Retry button.
  • #287 8758eeb Thanks @MohamedH1998! - - lint and check accept relative links between a content source’s pages, which the build turns into page URLs.

    • Search in a slice of several collections skips the other collections’ bundles instead of failing. @cloudflare/nimbus-docs/client exports mergeSearchIndexes, which the starter’s search provider uses.
    • API operation pages keep field names, types and labels apart in search, and leave the expand controls out.
    • The search button’s accessible name starts with its visible label, and API pages name their sidebars.
  • #287 8758eeb Thanks @MohamedH1998! - - add adapter-cloudflare on a pnpm site declines workerd’s build script first, so the install no longer fails.

    • A slice’s Markdown images are published under its prefix, and Markdown images load in astro dev.
    • WebMCP search covers every slice, like the search dialog. On an existing site, pass searchIndex to it as the starter’s WebMCP.astro does.
    • Search excerpts for request-rendered pages read as text, not Markdown syntax.
    • add --overwrite names the files that carry your edits.
  • #272 ba39e21 Thanks @MohamedH1998! - - Relative images now load in a page’s Markdown version and in llms-full.txt.

    • check and lint no longer count a Markdown partial as an unlinted page.
    • Search results no longer show a code block’s title and language joined to its first line.

Type to search…

↑↓ navigate↵ selectEsc close