reformat and reorganize recipes & add schema validation on push
Validate Markdown Format / Validate-Recipes (push) Successful in 4s
Validate Markdown Format / Validate-Recipes (push) Successful in 4s
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
name: Validate Markdown Format
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Validate-Recipes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v7
|
||||||
|
- name: Download & unzip schematter # once releases become more stable, unpin from specific version
|
||||||
|
run: wget https://github.com/iwe-org/schematter/releases/download/schematter-v0.2.0/schematter-v0.2.0-x86_64-unknown-linux-gnu.tar.gz && tar -xvzf schematter-v0.2.0-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
- name: Validate markdown
|
||||||
|
run: find recipes -name '*.md' -print0 | xargs -0 ./schematter validate --schema recipes/recipe-schema.yml
|
||||||
+4
-3
@@ -1,8 +1,10 @@
|
|||||||
# Sherry Yard's Milk Chocolate Custard (Pudding)
|
# Sherry Yard's Milk Chocolate Custard (Pudding)
|
||||||
**From Chris Bardeloza, modified slightly by Evan**
|
**From Chris Bardeloza, modified slightly by Evan**
|
||||||
|
|
||||||
|
A rich and creamy chocolate custard.
|
||||||
|
|
||||||
## Ingredients
|
## Ingredients
|
||||||
### Custard Base
|
- **Custard Base**
|
||||||
- 2 cups heavy cream
|
- 2 cups heavy cream
|
||||||
- ½ cup whole milk
|
- ½ cup whole milk
|
||||||
- 6 oz high-quality chocolate (60% cacao), finely chopped
|
- 6 oz high-quality chocolate (60% cacao), finely chopped
|
||||||
@@ -10,8 +12,7 @@
|
|||||||
- ⅓ cup granulated sugar
|
- ⅓ cup granulated sugar
|
||||||
- 1 tsp vanilla extract
|
- 1 tsp vanilla extract
|
||||||
- pinch salt
|
- pinch salt
|
||||||
|
- **Optional Toppings**
|
||||||
### Optional toppings
|
|
||||||
- whipped cream
|
- whipped cream
|
||||||
- chocolate wafer crumbs (for "dirt")
|
- chocolate wafer crumbs (for "dirt")
|
||||||
- shaved chocolate
|
- shaved chocolate
|
||||||
@@ -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
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
# Red Beans & Rice
|
# Red Beans & Andouille
|
||||||
|
**By Evan Scherrer**
|
||||||
|
|
||||||
|
My rendition of red beans & rice, inspired by a dish my mom made while I was growing up
|
||||||
|
|
||||||
## Ingredients
|
## Ingredients
|
||||||
* red beans
|
* red beans
|
||||||
* bacon
|
* bacon
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
# Tomato Meat Sauce
|
# Tomato Meat Sauce
|
||||||
|
**By Evan Scherrer**
|
||||||
|
|
||||||
|
A standard tomato/meat spaghetti sauce
|
||||||
|
|
||||||
## Ingredients
|
## Ingredients
|
||||||
* 1/2 - 1 lb ground turkey, beef, or italian sausage
|
* 1/2 - 1 lb ground turkey, beef, or italian sausage
|
||||||
* 1/2 large onion, finely diced
|
* 1/2 large onion, finely diced
|
||||||
|
|||||||
Reference in New Issue
Block a user