---
description: Rules for generating full documentation for blocks components
globs:
  - libs/blocks/**
alwaysApply: true
---

# Blocks Documentation Generation - Orchestrator

## Overview

This MDC file orchestrates the complete documentation generation process by calling the specialized MDCs for stories and MDX generation.

## File Structure

This MDC coordinates between three focused files:

1. **`blocks-documentation-generation.mdc`** - This orchestrator file (coordinates the process)
2. **`stories-generation.mdc`** - Focused on Storybook stories creation
3. **`mdx-generation.mdc`** - Focused on MDX documentation creation

## Usage Commands

Use these commands to generate documentation:

- **"Create full documentation for ComponentName.tsx"** - Generates both stories and MDX
- **"Create MDX for ComponentName"** - Generates only MDX (looks at existing .tsx and .stories.tsx)
- **"Create stories for ComponentName"** - Generates only stories

## Workflow

When "Create full documentation" is requested:

1. **First**: Call the "Create stories" MDC to generate `.stories.tsx`
2. **Then**: Call the "Create MDX" MDC to generate `.mdx`

## Reference

For detailed rules and examples, see:

- **`stories-generation.mdc`** - Complete Storybook stories creation rules
- **`mdx-generation.mdc`** - Complete MDX documentation creation rules
