# show available commands and exit default: @just --list --unsorted # print assembled text to stdout build: @find src -name '*.txt' -type f | sort -n | xargs m4 macros # watch for changes and build index.html watch: @find src -type f | entr just html # create index.html html: @just build | pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables > index.html # word count words: find src -type f | xargs wc -w # clean up artifacts clean: @rm index.html # publish to town up: scp index.html tilde:~/public_html/forest/