aboutsummaryrefslogtreecommitdiffhomepage
path: root/mdhtml
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2025-08-21 14:17:45 -0400
committerBradley Taunt <bt@btxx.org>2025-08-21 14:17:45 -0400
commit540e5363d828f685037e665c6ec423d4ae3ca170 (patch)
tree91f26573c4897556b06f72c0eb813d1a962d16dc /mdhtml
parent642d60cb023b2727b3e0e405180da387152a7512 (diff)
Use mdhtml build structureHEADmaster
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 {} \;