Compare commits

...

No commits in common. "ac3290ae3e00485dfe769678f434dbdf2886d3e7" and "c019a1536d605bf91d96f163d34e757aad99ca9b" have entirely different histories.

1 changed files with 3 additions and 4 deletions

View File

@ -4,20 +4,19 @@ default:
# print assembled text to stdout # print assembled text to stdout
build: build:
@find src -name '*.txt' -type f -print0 | sort -nz | xargs -0 m4 macros @find src -name '*.txt' -type f | sort -n | xargs m4 macros
# watch for changes and build index.html # watch for changes and build index.html
watch: watch:
@find src -type f | entr just html @find src -type f | entr just html
tohtml := "pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables"
# create index.html # create index.html
html: html:
@just build | {{tohtml}} > index.html @just build | pandoc --toc -s -c static/styles/main.css -H static/head.html -f markdown+simple_tables > index.html
# word count # word count
words: words:
find src -type f -iname '*.txt' -print0 | xargs -0 wc -w find src -type f | xargs wc -w
# clean up artifacts # clean up artifacts
clean: clean: