reformat and reorganize recipes & add schema validation on push
Validate Markdown Format / Validate-Recipes (push) Successful in 4s

This commit is contained in:
2026-09-19 16:34:20 -05:00
parent 90b2203340
commit 7b35703998
6 changed files with 69 additions and 15 deletions
+30
View File
@@ -0,0 +1,30 @@
description: a recipe card
sections:
- header: { pattern: ".+" }
description: every recipe needs a non-empty title
blocks:
- type: paragraph
text: { pattern: '^(By|From) .+$' }
description: every recipe needs a byline starting with 'By' or 'From'
- type: paragraph
description: every recipe needs a short description
sections:
- header: { const: Ingredients }
description: every recipe needs an ingredient list
maxContains: 1
blocks:
- type: bullet-list
minItems: 1
additionalBlocks: false
- header: { const: Instructions }
description: numbered steps, not a bullet list
maxContains: 1
blocks:
- type: ordered-list
minItems: 1
additionalBlocks: false
additionalSections: true