summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..d344180
--- /dev/null
+++ b/justfile
@@ -0,0 +1,7 @@
+format $filename:
+ #!/bin/sh
+ title=`sed -n 's/^# \(.*\)/\1/p' $filename | head -n1`
+ printf "$(< template.html)\n" "$title" "$filename" > index.html
+
+serve filename port="8000": (format filename)
+ python3 -m http.server {{port}}