docs/templates/concept_guide_template.mdx
Concept guides establish a shared mental model before feature or API docs. Define the idea, show how it behaves over time, and point to practical follow-ups.
title, description, icon. Lead with a definition + analogy in two sentences max.<Info> block (“Why it matters”) with 2–3 bullets summarizing user impact. Use <Warning> near limitations or beta callouts.## Key terms (table or bullets) before diving deeper.How does it work?, When should you use it?, How it compares). Optional diagrams should be left-to-right (graph LR).---
title: [Concept name]
description: [One-sentence promise of understanding]
icon: "lightbulb"
---
# [Concept headline]
[Define the concept in one sentence.] [Add an analogy or context hook.]
<Info>
**Why it matters**
- [Impact bullet]
- [Impact bullet]
- [Impact bullet]
</Info>
## Key terms
- **[Term]** – [Short definition]
- **[Term]** – [Short definition]
```mermaid
graph LR
A[Input] */} B[Concept]
B */} C[Outcome]
```
## How does it work?
[Explain lifecycle or architecture.]
```python
# Minimal snippet that anchors the concept in code
```
<Tip>
[Nuance or best practice related to this concept.]
</Tip>
## When should you use it?
- [Scenario 1]
- [Scenario 2]
- [Scenario 3]
## How it compares
| Option | Best for | Trade-offs |
| --- | --- | --- |
| [Concept] | [Use case] | [Caveat] |
| [Alternative] | [Use case] | [Caveat] |
<Warning>
[Optional limitation or beta note.] Delete if not needed.
</Warning>
## Put it into practice
- [Operation or feature doc that relies on this concept]
- [Another supporting doc]
## See it live
- [Cookbook or integration demonstrating the concept]
- [Recording, demo, or sample repo]
<CardGroup cols={2}>
<Card
title="[Feature or reference]"
description="[Why this deep dive matters]"
icon="book"
href="/[feature-link]"
/>
<Card
title="[Applied cookbook]"
description="[What they’ll build next]"
icon="rocket"
href="/[cookbook-link]"
/>
</CardGroup>