1 2 3 4 5 6 7 8 9 10 11 12 13 14 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!"