recipes

Recipes
git clone git://lumidify.org/recipes.git
Log | Files | Refs | README

commit 76b6911e75232ce265dfe8995b4b1670c49feb89
parent 5c8930def75ecc5dd4c1bd57af7a0c1d27cec29b
Author: lumidify <nobody@lumidify.org>
Date:   Fri, 27 Mar 2020 16:22:57 +0100

Add script for generating gph and html

Diffstat:
Mbaked_stuff.md | 2++
Mbeverages.md | 2++
Mdesserts.md | 2++
Agen_recipes.sh | 23+++++++++++++++++++++++
Mmain_meals.md | 2++
Mnotes.md | 2++
Mspice_mixes.md | 2++
Mspreads.md | 2++
8 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/baked_stuff.md b/baked_stuff.md @@ -1,3 +1,5 @@ +title:Baked Stuff + ## Baked Stuff #### Spelt (Dinkel) Bread diff --git a/beverages.md b/beverages.md @@ -1,3 +1,5 @@ +title:Beverages + ## Beverages #### Hot Cocoa diff --git a/desserts.md b/desserts.md @@ -1,3 +1,5 @@ +title:Desserts + ## Desserts ### General Materials diff --git a/gen_recipes.sh b/gen_recipes.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +echo '<!DOCTYPE html> +<html> +<head> +<meta charset="utf-8" /> +<meta name="viewport" content="width=device-width,initial-scale=1" /> +<meta name="date" content="2020-03-27" scheme="YYYY-MM-DD" /> +<title>Recipes</title> +</head> +<html> +<h1>Recipes</h1>' > html/recipes/index.html +echo 'Recipes' > gph/recipes/index.gph +for i in recipes/*.md +do + base=`basename $i .md` + lowdown -s -D html-head-ids -D smarty -o html/recipes/$base.html $i + tail -n +3 $i > gph/recipes/$base.md + title=`head -n 1 $i | sed 's/^.*://' | tr -d '\n'` + echo "<a href=\"$base.html\">$title</a>" >> html/recipes/index.html + echo "[0|$title|/recipes/$base.md|server|port]" >> gph/recipes/index.gph +done +echo '</html>' >> html/recipes/index.html diff --git a/main_meals.md b/main_meals.md @@ -1,3 +1,5 @@ +title:Main Meals + ## Main Meals ### General Materials diff --git a/notes.md b/notes.md @@ -1,3 +1,5 @@ +title:Notes + ## NOTE: THIS IS STILL A WORK IN PROGRESS #### Random Notes diff --git a/spice_mixes.md b/spice_mixes.md @@ -1,3 +1,5 @@ +title:Spice Mixes + ## Spice Mixes #### Chaat Masala diff --git a/spreads.md b/spreads.md @@ -1,3 +1,5 @@ +title:Spreads + ## Spreads #### Peanut Butter