diff options
Diffstat (limited to 'bin/build')
-rwxr-xr-x | bin/build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/build b/bin/build new file mode 100755 index 0000000..ab6db24 --- /dev/null +++ b/bin/build @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euo pipefail +cd "$(dirname "$0")/.." + +echo "Building HTML files…" + +for RECIPE in recettes/**/*.md; do + + OUT="public/${RECIPE%.md}.html" + mkdir -p "$(dirname "$OUT")" + pandoc "$RECIPE" --template=template.html -o "$OUT" + +done + +echo "Done!" |