Minor Changes
-
#229
a04304cThanks @MohamedH1998! - - A page or reusable snippet with only frontmatter builds, and its Markdown version is just its title and source.- A snippet included inside a list item or quote keeps that structure in the page’s Markdown version.
llms.txtnames each section for its index page’s title, such as “Guides” instead ofguides.- Documentation search results link to the page itself instead of a URL ending in
#, and excerpts no longer include the page actions. - The Markdown version of an API page names each field as the page does, with its full coordinate beside it for citing.
-
#232
d655e86Thanks @MohamedH1998! - - API pages link to the previous and next page in sidebar order, even when a group is collapsed.- Error responses start collapsed; a link to one, or to a field inside it, opens it.
- A sidebar link to an API or docs-version mount, such as
/api, no longer warns. - Operations that fall back to a coordinate route print one summary line, so other warnings stay visible.
- Samples and the endpoint card keep a server URL’s query after the path.
- Response toggles meet 4.5:1 contrast in light mode, field anchors work on touch screens, and “Authorisation” reads “Authorization”.
-
#211
4a841cbThanks @MohamedH1998! - - Addbundle: falseto anapientry to serve a very large or many-version API from static assets instead of the server bundle. Unchanged pages are shared across versions, and unchanged versions aren’t prepared again on rebuild. Needssrc/live.config.tsregisteringapiPagesLoaderfrom@cloudflare/nimbus-docs/live; the build shows the snippet. The build suggests the option when an API’s bundled page data passes 16 MiB.- Add
getVersionSwitchUrlandgetApiVersionHeadfor version pickers and heads in every rendering mode; the starter’s picker and API layout use them.
- Add
-
#212
94ebe52Thanks @MohamedH1998! - API pages show the sidebar filter. Withsidebar: "on-demand"it also finds pages the sidebar hasn’t loaded. -
#222
e15eea7Thanks @MohamedH1998! - Newapi[].extensionsoption: list thex-*fields to keep, and their values are copied onto API pages aspage.extensionsandfield.extensionsfor your components to render. -
#214
825ffcfThanks @MohamedH1998! - API reference pages show the version picker for versioned APIs, in the sidebar and the mobile navigation. -
#211
02f53a1Thanks @MohamedH1998! -versionModeis nowversionUrl:versionUrl: { in: "query" }selects the version with?version=instead of?api-version=, and old links redirect. Setparamto use another name (review entryapi-version-url). -
#240
381b37aThanks @MohamedH1998! - -og:image:widthandog:image:heightdescribe the image: generated cards stay 1200 × 630, asocialImagefile inpublic/is measured at build time, and any other image gets no size tags.NimbusHeadtakessocialImageSizeto set them for an image Nimbus can’t measure.- The sitemap has
<lastmod>on every documentation page, from frontmatterlastUpdatedor the page’s last commit, and/sitemap.xmlis a copy ofsitemap-index.xmlunless the site serves its own. - The starter’s
BaseLayoutpassessocialImageSizethrough toNimbusHead, and the 404 page recipe writes the new title andnoindex. - On a shallow clone, pages get no git dates instead of the wrong one, and the build says how to fetch the history.
- The 404 page’s title is
Page not found | <site>and the page isnoindex.
- The sitemap has
-
#233
1f2ce43Thanks @MohamedH1998! - - New sites open content images at full size on click. On an existing site, runnimbus-docs add image-zoomand render<ImageZoom />insrc/layouts/DocsLayout.astro. -
#238
315ab66Thanks @MohamedH1998! - - Aresource-action-v2route convention publishes tag pages at lowercase URLs, such as/api/tags/user-management, with the same operation URLs asresource-action-v1. Existing conventions, and sites withoutroutes, are unchanged.- The API reference recipe sets
resource-action-v2on new sites and resolves the route collisions the build reports.
- The API reference recipe sets
-
#224
79b05efThanks @MohamedH1998! - - Newmarkdown.featuresoption turns on Sätteri syntax, such as{ headingAttributes: true }for## Install {#install}or{ math: true }. Pages, generated Markdown, reusable snippets and lint all follow it. New sites start with heading ids on.- Generated Markdown drops
{/* comments */}. - Invalid MDX reports the file, line and fix instead of an internal error.
- Generated Markdown drops
-
#226
dd95e97Thanks @MohamedH1998! - - Newmath()Markdown plugin typesets$…$,$$…$$and```mathat build time as native MathML, with no math JavaScript. Addmath()tomarkdown.hastPluginsandmath: truetomarkdown.featuresto use it. -
#236
fb759c5Thanks @MohamedH1998! - - With the section route atsrc/pages/[...section]/llms.txt.ts, each sub-folder gets its ownllms.txt, and its parent’s index links to it under “Sections”. New sites have this route; a[section]route keeps today’s one index per top-level section.- An
llms-full.txtover 25 MiB becomes an index of onellms-full.txtper section, split further where a section is still too big, so the site deploys to Cloudflare. LlmsEndpointReference(from@cloudflare/nimbus-docs/agent-endpoints) addssurface: "full"on section references, for the per-sectionllms-full.txtfiles.
- An
-
#224
79b05efThanks @MohamedH1998! - Starter fixes:- The theme toggle no longer submits a surrounding form, reports its state to screen readers, and still switches when storage is blocked.
- Closing a dialog no longer releases another overlay’s scroll lock.
- “Copy page” works in Safari, and a failed command copy shows it failed.
- In search, Enter on the close button closes the dialog, and status messages are announced.
<Render>params can’t replace registered components; small fixes to breadcrumbs and the mobile table of contents.- Banner content is rendered as written, like the rest of the site’s content.
-
#223
c39fdfcThanks @MohamedH1998! - The docs version picker no longer appears on pages outside the docs versions, such as API reference and blog pages.
Patch Changes
-
#228
6d4bd68Thanks @MohamedH1998! - -addreports components whose files already match the registry as up to date, and--overwritelists each file it replaces, asking first in a terminal when you’ve edited the component.add --overwritedetects edits to components that came with the starter from the starter release your site came from, so it replaces untouched ones without asking.addadds a component’s missing files even when it keeps your edited ones, and lists each file it adds, replaces or keeps.addno longer suggests registering a component thatcomponents.tsalready registers.- Upgrade reviews about API reference pages are skipped on sites without an API collection.
outdatedsays when a newer Nimbus is out, when the reviewed version only needs recording, and when a registry dependency is installed below the version a component needs.diff --applyon a file only you changed reports there’s nothing to pull, without failing.diff,outdatedandmigrateexplain preview builds instead of asking for a baseline.
-
#219
942c57bThanks @MohamedH1998! - Generated code samples formultipart/form-datarequest bodies now send every part, with file fields as<name>placeholders, instead of only theContent-Typeheader. -
#223
c39fdfcThanks @MohamedH1998! - - Generated API samples use<base-url>when a spec has no server or a relative one, instead of an invented host, and fill server variables from their defaults.- OpenAPI 3.2 tag
parentno longer prints a warning for each tag that uses it. nimbus-docs add api-layoutends by pointing to the API route instead ofsrc/components.ts.- The Markdown version of an API page fences cURL samples as
bash.
- OpenAPI 3.2 tag
-
#220
cd7f0daThanks @MohamedH1998! - - Request field lists no longer show properties markedreadOnlyacross schema alternatives, and response field lists no longer show those markedwriteOnlyacross alternatives. Synthesized examples use the selected alternative; authored examples retain their values. Webhook payloads read like responses. Cite areadOnlyfield under the response.- A string example under a non-JSON media type such as
application/x-ndjsonis sent verbatim in generated samples. - Object form examples with media-type parameters such as
; charset=utf-8generate per-field samples; authored encoded strings keep their bytes.
- A string example under a non-JSON media type such as
-
#234
1b546afThanks @MohamedH1998! - -astro devandastro checkno longer delete the build’s page-collection list, sonimbus-docs checkruns its page-collection checks after a build.nimbus-docs lintandchecksay when the lint rules in your Astro config changed since.nimbus/lint.jsonwas written, and to runastro sync.checkmarks a scope that skipped some checks◐ ok, partly checked, and says--typescovers.tsand.tsxfiles only (runastro checkfor.astro).nimbus-docs check --helplistscheck’s own flags.- The adapter warning for
@astrojs/cloudflare14.2.x says only a coldastro devcan fail; builds aren’t affected. - An invalid API spec, such as Swagger 2.0, fails the build with its message and no stack trace.
- Request-rendered routes that export
getStaticPaths()get one line explaining that the rendering policy renders them on request. - On a static Cloudflare site with
trailingSlash: "always"andbuild.format: "file", the build andcheckwarn that every/page/link redirects, and name thewrangler.jsoncfix. - Repeated API spec warnings that differ only by source print once, with a count.
lint --rule nimbus/mdx-syntaxsays the syntax check always runs.
-
#211
ff1cd57Thanks @MohamedH1998! - Load@iconify-jsonicon sets from the site root, so a build started from another directory still finds them. -
#237
7a07851Thanks @MohamedH1998! - - Search is indexed howeverastro buildis started, including./node_modules/.bin/astro build.- A site’s
pagefind.ymlapplies when the build starts from another folder with--root. - The build says to install Pagefind only when it isn’t installed.
- A site’s
-
#230
25d21cfThanks @MohamedH1998! - - Server scaffolds for Node, Vercel, and Netlify render docs pages on request, so Markdown negotiation works on them.- Scaffold into
.or an empty folder, including a freshly cloned repository. - New repositories get a first commit; scaffolding inside an existing repository no longer creates a nested one.
npm createinstalls a handful of packages instead of the whole framework.- A missing package manager fails before anything is written, and a mistyped flag suggests the right one.
- Yarn sites ignore
.yarn/the way Yarn recommends, and pin Yarn inside a folder that pins another package manager. - The starter’s
AGENT.mdexplains sidebar groups, order, and links. nimbus-docs checkand--helpshow commands for your package manager.
- Scaffold into
-
#213
7350707Thanks @MohamedH1998! - When an API’s spec can’t be published because a$refisn’t a reference string, the build warning names where it is instead of printing[object Object]. -
#227
ea8712dThanks @sansynx! - Add UTF-8 Content-Type headers for prerendered llms indexes, full documents, page Markdown, and robots.txt. Keep rules scoped to Nimbus file paths and preserve explicit owner Content-Type policies.