forest/justfile

24 lines
495 B
Plaintext

# 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 out.html
watch:
@find src -type f | entr just html
# create out.html
html:
@just build | pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables > out.html
# word count
words:
find src -type f | xargs wc -w
# clean up artifacts
clean:
@rm out.html