If you already have a docs site, most of it moves as it is: Markdown is Markdown, and the rest is a mapping. Every page keeps its URL. A coding agent can do the whole migration with one recipe; by hand it is seven steps.
What moves
| From the old site | In Nimbus |
|---|---|
| Pages, as Markdown or MDX | src/content/docs/, at the paths that keep their URLs |
| A navigation file, or a sidebar list in the old config | sidebar.items in astro.config.ts, same groups and order (Sidebar) |
| Navigation from folders, with an order in frontmatter | Folders and sidebar.order, as before |
| Navigation labels, hidden pages, badges | sidebar.label, sidebar.hidden, sidebar.badge (Frontmatter) |
| Callouts, tabs, steps, cards, accordions, code groups, framed images, file trees | The starter’s Aside, Tabs, Steps and Card, plus registry components (Registry) |
| Reusable snippets | Partials, included with <Render> (Reusable snippets) |
| API pages generated from an OpenAPI file | The API reference, from the same file |
| Old URLs that changed | redirects in astro.config.ts (Redirects) |
| Images and files | public/, same paths |
| Custom CSS and theme colors | Not translated. The theme is yours to edit in src/styles/globals.css (Theme and tokens) |
Pages in other languages stay out for now; the agent’s report lists them.
What Nimbus does differently
- Components are yours. The scaffolder copies them into your repo; there is no theme to configure or fork (Ownership).
- Every page has a Markdown twin and a line in
llms.txt. Agents read your site without a plugin (Markdown and llms.txt). - Search is built in. There is no search provider or key to carry over (Search).
- Frontmatter is validated. An unknown key fails the build instead of being ignored, so the migration surfaces every field it dropped.
With a coding agent
Scaffold a Nimbus site beside the old one, then hand your agent the recipe. It reads the old site as data, writes only into the new one, and ends with a report of everything it could not carry over.
npm create @cloudflare/nimbus-docs@latest -- my-docs --yes --content emptyyarn create @cloudflare/nimbus-docs my-docs --yes --content emptypnpm create @cloudflare/nimbus-docs@latest my-docs --yes --content emptybun create @cloudflare/nimbus-docs@latest my-docs --yes --content emptycd my-docsnpx @cloudflare/nimbus-docs add migrateyarn nimbus-docs add migratepnpm nimbus-docs add migratebunx @cloudflare/nimbus-docs add migrateadd prints the recipe for the agent it detects, or pipe it yourself with --print. The recipe is also at registry/features/migrate.md, for an agent that can read a URL.
The recipe never runs the old site’s scripts and copies no secrets. It carries only same-origin redirects, safe URLs and known asset types, and lists raw HTML, embeds and code instead of copying them.
By hand
Scaffold a site
npm create @cloudflare/nimbus-docs@latest -- my-docs --yes --content emptyyarn create @cloudflare/nimbus-docs my-docs --yes --content emptypnpm create @cloudflare/nimbus-docs@latest my-docs --yes --content emptybun create @cloudflare/nimbus-docs@latest my-docs --yes --content emptycd my-docsCopy the pages
Copy your Markdown and MDX files into
src/content/docs/at the paths that give them their old URLs:guides/install.mdxserves/guides/install/.Rewrite frontmatter
Every page needs a
title. Map navigation fields tosidebar.order,sidebar.labelandsidebar.hidden, drafts todraft: true, and remove keys Nimbus doesn’t know (Frontmatter). The build tells you which.Rebuild the navigation
If your old site listed its navigation in a file, write the same groups as
sidebar.items, pages by slug (Arrange the sidebar by hand). If it followed your folders, there is nothing to do.Map components and snippets
Callouts become
:::tipdirectives or<Aside>; tabs, steps and cards become<Tabs>,<Steps>and<Card>(Markdown and MDX). Install anything else you use from the registry withnimbus-docs add. Move snippets tosrc/content/partials/and include them with<Render>.Carry the API reference and redirects
Point the API reference at your OpenAPI file. Add every old path that changed to
redirectsinastro.config.ts(Redirects).Check, build, check again
npx @cloudflare/nimbus-docs checkyarn nimbus-docs checkpnpm nimbus-docs checkbunx @cloudflare/nimbus-docs checknpm run buildyarn run buildpnpm run buildbun run buildnpx @cloudflare/nimbus-docs checkyarn nimbus-docs checkpnpm nimbus-docs checkbunx @cloudflare/nimbus-docs checkThe first
checkreports frontmatter and content errors; the second, with the build’s route list on disk, reports broken internal links.
Next steps
- Project structure: what the scaffolder wrote and what each file does.
- Branding: logo, colours and fonts.
- Deployment: put the site online.