2024-01-02 01:45:20 +00:00
|
|
|
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
|