Skip to content
Blog

A documentation framework for an Astro site: search, versions and an OpenAPI reference

Add a documentation framework to an Astro site with search, versioned docs and an OpenAPI reference, as a site of its own or under a path.

Nimbus is a documentation framework built on Astro, so an Astro team keeps its tools: components, content collections and the same build. It ships search, versioned docs and an OpenAPI reference, and runs either as a docs site of its own or under a path of your existing domain.

Two ways to add it

A docs site of its own, such as docs.example.com. Scaffold a Nimbus site in its own folder or repository. It’s an Astro project, so your team already knows how it builds and deploys.

Under a path of your site, such as example.com/docs/. Set Astro’s base to /docs, and every page, Markdown version and llms.txt moves under it (Serve under a path).

Pick the first when the docs have their own release rhythm, the second when they should share your domain.

Search is on by default. After every build, Nimbus indexes the pages into a static index served beside them, so it works on any host with no backend (Search).

Versions

Each docs version is its own content collection under its own path: the current docs stay at /, and an older version lives at /v1/. The new-version recipe copies the content, registers the collection and adds a version picker (Versioned documentation).

An OpenAPI reference

Point Nimbus at an OpenAPI 3.x document and it builds one page per operation, tag and webhook, with code samples and an optional Try it panel (API reference from OpenAPI).

It stays yours

The layouts and components are copied into your repo, so you style them like the rest of your Astro code. The framework stays a dependency, and nimbus-docs migrate tells you what each upgrade needs (Upgrade a Nimbus site).

Try it

Scaffold a site, then open it with npm run dev:

npm create @cloudflare/nimbus-docs@latest -- my-docs

More posts

All posts

Get started

Your docs, five minutes from now.

Press ⌘C to copy the one command you need. Or click the keys.

npx @cloudflare/create-nimbus-docs@latest

Paste it in your terminal. A few questions later, the site is in your repo.

Type to search…

↑↓ navigate↵ selectEsc close