You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/instructions/stories.instructions.md
+50-3Lines changed: 50 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,42 @@ These rules apply to all Storybook stories (`*.stories.tsx`) and ensure they are
14
14
15
15
## Implementation Rules
16
16
17
-
### Documentation Location
17
+
### Documentation Location (ADR-013)
18
+
19
+
This repository follows **ADR-013: Storybook Documentation Location** (see `docs/adrs/013-adr-storybook-documentation-location.md`).
20
+
21
+
**Autodocs-First Approach:**
22
+
23
+
-**Primary documentation** lives in story files via Autodocs. Stories must include the `autodocs` tag in their `tags` array (for example, `tags: ['autodocs']`).
24
+
- All stories **must** include the `autodocs` tag in their `tags` array to enable automatic documentation generation.
25
+
- Add a short component description via `parameters.docs.description.component` when it helps clarify the component's purpose or key behaviors.
Copy file name to clipboardExpand all lines: src/stories/atoms/Dialog.stories.tsx
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,14 @@ const meta = {
16
16
title: 'Atoms/Dialog',
17
17
component: Dialog,
18
18
tags: ['autodocs'],
19
+
parameters: {
20
+
docs: {
21
+
description: {
22
+
component:
23
+
'Modal dialog compound component for critical user interactions. Built with a Dialog root component and DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, and DialogClose sub-components for composable layouts.',
0 commit comments