mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-05 15:26:24 +01:00
11 lines
314 B
Makefile
11 lines
314 B
Makefile
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
|