Minor Changes
-
#93
43c161aThanks @MohamedH1998! - Add first-party OpenAPI reference support to Nimbus.- Configure local or inline OpenAPI specs as routed, version-aware collections with operations, schemas, tags, webhooks, generated samples, and every declared request-body media type.
- Install an editable
api-layoutUI that shares Nimbus's docs shell, navigation, breadcrumbs, banners, mobile behavior, and deep-linkable field and code-sample controls. The copiedApiFieldListfield iterator is explicitly typed so the scaffolded UI type-checks cleanly under a consumer's strict TypeScript. - Publish per-page Markdown, agent indexes, corpus entries, coordinate manifests, and
api.ref:citations across local and cross-site documentation. - Harden generated-consumer delivery with exact registry dependencies, working pnpm installs from scaffold roots, and base-aware canonical, Markdown, sitemap, and agent URLs through the new public
withBasehelper. - Control how operation pages are addressed, and stay resilient to messy specs. By default, operations that lack a usable
operationIdno longer abort the build — they warn and fall back to a path-derived coordinate, so real-world specs (e.g. Cloudflare'sbrand-protectionoperations) build; setapi[].requireOperationId: trueon specs you own to keep that fatal, while route-hostile paths and coordinate collisions stay fatal regardless. For readable, path-derived URLs, opt into theresource-action-v1route convention: setapi[].routes: { convention: "resource-action-v1" }(per version in a family) to derive slugs likecharges/listfrom an operation's method and path, decoupled fromoperationIdso route-hostile identifiers no longer poison URLs. Trim shared bases withstripPathPrefixes(e.g.["/v1"]), pin individual pages with anoperations(operationId→ slug) map, and inspect how each slug resolved (override/derived/fallback) via the newgetApiRouteProvenanceexport. Derivation collisions, reserved-route segments, unused overrides, cross-version slug drift, and unknown config keys (e.g. astripPrefixestypo forstripPathPrefixes) are reported with pointed messages; the default (noroutes) keeps the legacyoperationIdslugs unchanged.
-
#103
f372a4eThanks @MohamedH1998! - Add a--adapter <vercel|node|netlify|cloudflare>scaffold flag for server output.Passing
--adapterselectsoutput: "server"and wires the chosen adapter at scaffold time: it flips the generatedastro.configat the// nimbus:adaptermarker, appends the adapter's platform build dir to.gitignore, and for Cloudflare writes a serverwrangler.jsonc. Node scaffolds include a productionstartscript.--deployis ignored with--adapter(server output owns its target). Config discovery follows Astro's own resolution order and supported set (.mjs/.js/.ts/.mts), matching thenimbus-docs add adapter-*opt-in. Copied templates are rejected if they contain symlinks so transformations cannot escape the project root.Static scaffolds now preserve the
// nimbus:adaptermarker so the laternimbus-docs add adapter-*opt-in can reliably rewrite generated projects.Reject destinations whose existing symlinked parent resolves outside the current directory, quote paths with spaces in next-step commands, and keep generated components compatible with adapter-defined
Astro.localstypes. -
#104
862df4aThanks @MohamedH1998! - Add Cloudflare request rendering for canonical content collections.Nimbus now supports collection-level build and request rendering policies with validated defaults and per-collection overrides. Request-rendered prose and API routes use response-aware page helpers, prepared API models, request-safe partial headings, 404 responses, and build-derived syntax-highlighting assets without shipping source OpenAPI specs to Workers. Cloudflare server scaffolds enable request rendering by default, and generated pnpm configuration installs Satteri's WASI fallback alongside the current architecture.
Preserve sitemap, Pagefind, Markdown, and agent-index discovery for request-rendered routes. Pin the tested sitemap integration, clean up synthetic Pagefind staging files transactionally, and generate cross-collection Open Graph images in new starters.
Patch Changes
-
#89
deddca5Thanks @sansynx! - Remove the deprecatedbaseUrloption from generated TypeScript configuration so Nimbus sites continue to pass type checks on TypeScript 6 while preserving the@/import alias. -
#99
2965d9fThanks @MohamedH1998! - Guard thePackageManagersrestore script'stextContentaccess with optional chaining so the starter passes a strictastro check(part of the CJK/type-safety fixes).