Doctor
The doctor
command helps maintain a healthy recipe collection by checking for syntax errors, validating references, and ensuring proper organization. Think of it as a health check for your recipes.
Basic Usage
This runs all available checks on your recipe collection and reports any issues found.
Available Checks
Recipe Validation
Check all recipes for syntax errors and warnings:
This command:
- Detects syntax errors that prevent parsing
- Reports warnings about potential issues
- Validates recipe references (when one recipe includes another)
- Checks for invalid units or quantities
- Identifies deprecated syntax
Aisle Configuration
Check for ingredients missing from your aisle configuration:
This helps maintain complete shopping list categorization by finding ingredients that aren't assigned to any store section.
Strict Mode
Use strict mode in CI/CD pipelines:
Great for:
- Pre-commit hooks
- GitHub Actions
- Quality gates
Validate Specific Directory
Custom Base Path
Common Issues and Fixes
Syntax Errors
Unknown Timer Units
Invalid Quantities
Missing Units
Warnings
Deprecated Syntax
Unsupported Metadata
Reference Errors
Missing Recipe References
Circular References
Setting Up CI/CD
GitHub Actions
Create .github/workflows/validate-recipes.yml
:
Batch Fixes
Fix common issues across all recipes:
Aisle Configuration Management
Creating Aisle Configuration
Generate from existing recipes:
Multi-Store Configuration
Different stores have different layouts:
Use appropriate configuration:
See Also
- Recipe – View and validate individual recipes
- Shopping List – Uses aisle configuration
- Server – Browse recipes with validation status