Overview
/snippets is the repo’s shared import namespace for reusable docs infrastructure content.
Today the canonical steady-state model is:
assets/ for static files and retained support artifacts
components/ for the governed component library
composables/ for MDX imported into other MDX pages
data/ for shared data modules, generated feed outputs, and snapshots
templates/ for copy-ready authoring scaffolds
The canonical root governance model is also now strict:
snippets/guide.mdx is the only human-authored source of truth for snippets taxonomy and placement rules
snippets/snippets-registry.mdx is generated from the live filesystem plus folder metadata embedded in the guide
snippets/_workspace/ and snippets/automations/ are intentionally excluded from the generated root registry.
Mintlify-specific authoring and preview behavior is governed separately in Mintlify Repo Guide.
Root Governance
snippets/guide.mdx
Use the guide for:
- folder purpose and placement rules
- how to create new snippet items
- generated versus manual ownership rules
- machine-readable folder metadata used by the registry generator
snippets/snippets-registry.mdx
The registry is generated and non-editable. It renders:
- the full live
snippets/ tree
- folder descriptions for every included folder
- delegated descriptions for
components/** instead of duplicating component governance
Folder Taxonomy
Placement Rules
When creating a new snippet item:
- If it is
.mdx imported into another .mdx page, place it in composables/.
- If it is a data module or generated page input, place it in
data/.
- If it is a static file or retained raw export, place it in
assets/.
- If it is a reusable component, route it through
components/ governance instead of deciding from this page.
- If it is a starter scaffold, place it in
templates/.
If it does not clearly fit one of those lanes, resolve taxonomy first instead of creating a new top-level bucket.
Components Governance
components/ is governed separately.
Use:
This snippets inventory page does not restate component placement rules.
Freshness and Generation
The snippets registry is generated by:
Freshness is enforced by:
The generated registry should be regenerated whenever:
- snippets folders move
- a new included snippets folder is added
- folder descriptions in
snippets/guide.mdx change
Usage Patterns
Importing Components
Importing Data
Importing Composables
Last modified on April 7, 2026