aboutsummaryrefslogtreecommitdiffhomepage
path: root/mdhtml
diff options
context:
space:
mode:
Diffstat (limited to 'mdhtml')
-rw-r--r--mdhtml10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdhtml b/mdhtml
new file mode 100644
index 0000000..fd5a2cf
--- /dev/null
+++ b/mdhtml
@@ -0,0 +1,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 {} \;