aboutsummaryrefslogtreecommitdiff
path: root/bin/build
blob: ab6db24289b157cdf2dfbc0114f80103d39d9ce7 (plain)
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!"