Patch Changes
-
#176
3b3d33fThanks @MohamedH1998! - New Cloudflare server sites install@astrojs/cloudflare14.3, which fixes a crash on the firstastro devwith a cold cache ("Dev server process exited before becoming ready"). -
#177
adb8efeThanks @MohamedH1998! - Add thecopy-promptregistry component. Runnimbus-docs add copy-promptto installCopyPrompt, a one-line prompt with a Copy prompt button for readers to paste into an AI coding agent. New sites don't include it by default. -
#173
60d0af3Thanks @MohamedH1998! - - Templates used without the scaffolder includenimbus.jsonwith the reviewed Nimbus version, so their builds no longer fail with "Nimbus has no reviewed upgrade baseline".- npm, yarn, and bun sites no longer include
pnpm-workspace.yaml. - Yarn sites get a
.yarnrc.ymlwithnodeLinker: node-modules. Before, Yarn 2+ installed in Plug'n'Play mode, and the site failed to build or start the dev server. - Unknown
--contentand--package-managervalues are rejected with the valid choices. Before, a typo such as--package-manager pnmpscaffolded a site with no install and still printed "Done". - Without a terminal, the scaffolder lists every question it can't ask, each with the flag that answers it, and suggests
--yes, instead of failing withuv_tty_init returned EINVAL. Flags that answer every question, including--gitor--no-git, work without--yes. - The starter's
AGENT.mdpoints at theIconcomponent the starter uses,@cloudflare/nimbus-docs/components/Icon.astro, instead ofastro-icon, and at@cloudflare/nimbus-docs/contentfor the docs schema. Its commands usenpx @cloudflare/nimbus-docs, which runs the project's installed version with any package manager. - The starter's Getting Started page shows the create command.
- npm, yarn, and bun sites no longer include
-
#178
7d606e3Thanks @MohamedH1998! - Behavior changes- A failed dependency install exits
1. The scaffolder keeps the project and prints the commands that finish the setup. Before, it printed "Done" and exited0, so CI treated the site as ready. - Unknown flags, such as
--output server, stop the scaffolder with the list of valid flags. Before, they were ignored and the site was scaffolded without them. --gitwith--no-git, and--deploywith--adapter, stop the scaffolder. Before,--no-gitwon and--deploywas ignored with a warning.- A second directory argument stops the scaffolder. A leading
--, as pnpm passes it through, is accepted, sopnpm dlx … -- my-docs --yesno longer ignores--yes.
First run
yarn dlxwith Yarn 2+ can scaffold from a PR preview. Yarn now extracts the package instead of keeping it in a zip, where the preview's bundled templates couldn't be read.- Pressing Enter at the directory prompt uses
my-docs, as shown. Before, it failed with "Directory is required". - bun's install output no longer shows in the scaffolder's output, and "Next steps" no longer has an empty line where the install command would be. An install's own output shows only when it fails.
- The empty starter ships one home page,
src/content/docs/index.mdx, so its firstnimbus-docs checkno longer warns about a duplicate route at/. Before, a landing page shadowed it and linked to pages the empty starter doesn't have. - The starter's home page links to its pages through their entries, so the links follow
trailingSlashand a card whose page you delete disappears instead of linking to a 404. - The starter's
AGENT.mdsays to setsitebefore runningcheckin a loop, and ends the loop when only fixes that need input remain, so an agent no longer loops on the placeholdersite. It also says components can be imported in the.mdxfile that uses them instead of registered.
- A failed dependency install exits
-
Updated dependencies [
adb8efe,41376dd,fd53431,6637381,ae346f0]:- @cloudflare/nimbus-docs@0.15.1