aboutsummaryrefslogtreecommitdiffhomepage
path: root/mdhtml
blob: fd5a2cf7c95eb76909f9ae04eaa2a1db1708fdcb (plain)
1
2
3
4
5
6
7
8
9
10
# ! /bin/sh
rm -rf public/*
cp -R assets/* public/

for file in *.md; do
  name="${file%.md}"
  (cat _header.html; kramdown "$file"; cat _footer.html) > "public/${name}.html"
done

find public -type f \( -name "*.html" -o -name "*.css" \) -exec gzip -k -f {} \;