forked from katzen-cafe/iowo
17 lines
479 B
Makefile
17 lines
479 B
Makefile
all: test docs
|
|
|
|
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
|
|
docs:
|
|
#!/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
|
|
|
|
test:
|
|
#!/usr/bin/env nu
|
|
cargo nextest run
|