iowo/justfile

18 lines
479 B
Makefile
Raw Normal View History

2024-01-11 11:03:43 +00:00
all: test docs
2024-01-10 22:35:39 +00:00
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
docs:
2024-01-10 22:21:33 +00:00
#!/usr/bin/env nu
glob **/*.typ --exclude [**/{template.typ,util/**}] | par-each { |source|
typst compile $source --root=docs
let pdf = (
(echo $source | path dirname)
| path join (echo $source | path basename | str replace ".typ" ".pdf")
)
mv $pdf docs/compiled
} | ignore
2024-01-11 11:03:43 +00:00
test:
#!/usr/bin/env nu
cargo nextest run