Patch Changes
- #179
8ded65bThanks @MohamedH1998! - -migraterefuses to record a reviewed version when the project's@cloudflare/nimbus-docsisn't installed, and says to install dependencies. Before,npx @cloudflare/nimbus-docs migrate --yesin a fresh clone recorded the latest release while the lockfile installed an older one, and the build then failed with advice that failed too.- When
nimbus.jsonrecords a version newer than the installed one, the build error says to install dependencies or upgrade, with the command, instead of suggestingmigrate. migrate --dry-run --diffwith nothing pending prints the same result and next step asmigrate --dry-run, instead of nothing.- Before the first install,
checkreports one "Dependencies aren't installed" error with the install command, instead of offering to install pagefind and wrangler one at a time or reporting a TypeScript error. The command follows the site'spackageManager, lockfile, orpnpm-workspace.yaml/.yarnrc.yml, not the tool that ran the CLI, so a pnpm site checked withnpxis toldpnpm install. - After
check --fixwithout a terminal, the footer namescheck --fix --yesfor skipped installs, and says a value such assiteneeds editing by hand or an interactive terminal. Before, it only said to reruncheck --fix"in a terminal", even for installs. check --helpgives the same stop rule as the starter'sAGENT.md.- The
nimbus/request-rendering-build-requirednote no longer claims a build resolves it.checkdoesn't verify request-rendered pages; a passing production build is the gate. - Under
trailingSlash: "always"withbuild.format: "file", canonical andog:urlURLs keep the trailing slash, so they match page links and the sitemap. <PackageManagers type="exec">runs the project's installed CLI with every package manager:pnpm nimbus-docsandyarn nimbus-docsfor a scoped package, instead ofpnpm @cloudflare/nimbus-docs.- The starter fixes search on sites whose
basehas no trailing slash, such asbase: "/docs". Existing sites: runnpx @cloudflare/nimbus-docs outdated, thendiff src/components/ui/search/providers/pagefind.ts --apply.
- When