diff --git a/doc/watch.sh b/doc/watch.sh new file mode 100755 index 0000000..a02fe2c --- /dev/null +++ b/doc/watch.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +while true; do + filename=$(inotifywait -qe close_write . --include '\.md$' --format '%f') + markdown < "$filename" > "$(basename "$filename" ".md").html" + echo "[$(date)] Updated $filename" +done