Minor Changes
-
7877bc6: feat(DST-1421):
marigold examplescommands to expose application patternsAdds
marigold examples listandmarigold examples get <slug>so AI agents (and humans) can discover and retrieve Marigold's application-level reference patterns from the terminal, mirroring the library-first architecture of thedocs/listcommands.- CLI: new
listExamples()/getExample(slug)library functions and aexamplescommand wrapping them, with--format markdown|json|plain,--freshand--offline(reusing the existing cache layer). Tab completion and telemetry are extended to cover the new command and example slugs. - Docs: a new
build-examples.mjsregistry step emitspublic/mcp/examples.jsonandpublic/mcp/examples/<slug>.jsonfrom colocated*.marigold-pattern.yamlsidecars. Examples are discovered by sidecar presence (App-Shell placeholder pages are excluded automatically), and a malformed sidecar fails the build. Sidecars ship for thefilter,formandinventoryexamples. - A global framework-transformation note (
marigold docs getting-started/examples-for-agents) documents porting examples from the Next.js App Router to other frameworks (Vite, etc.) once, rather than per example.
- CLI: new
-
d84dfeb: feat(DST-1445): surface non-component docs pages in the CLI
marigold docs <name-or-slug>now resolves any docs page, not just components — Foundations, Patterns, and Getting-Started pages are reachable by slug (docs foundations/accessibility) or name (docs installation). Full slugs route by prefix (components/…to a component, otherwise a page); bare names try components first and fall back to pages.marigold listnow also lists those pages, grouped underFoundations,Patterns, andGetting Startedheadings, and accepts--category foundations|patterns|getting-started(the top-level segment, so--category patternsreturns every pattern page). The--format jsonpayload gains an additive top-levelpagesarray ({ title, slug, category, description }); the existingcategoriesshape is unchanged. Shell completion now suggests page slugs fordocsand page categories for--category.The package README was updated to document the new page support: the
docscommand reference now covers slugs and page categories, and thelistreference reflects that pages are listed and searchable alongside components.Note: the internal
getComponentDocs/ComponentDocsexports were renamed togetPageDocs/PageDocs.