Compare commits

...

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

1 changed files with 4 additions and 3 deletions

View File

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