2024-01-11 12:03:43 +01:00
|
|
|
all: test docs
|
|
|
|
|
2024-01-18 20:29:41 +01:00
|
|
|
test:
|
|
|
|
#!/usr/bin/env nu
|
|
|
|
cargo nextest run
|
|
|
|
|
2024-01-10 23:35:39 +01:00
|
|
|
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
|
2024-01-02 02:45:20 +01:00
|
|
|
docs:
|
2024-01-10 23:21:33 +01: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 12:03:43 +01:00
|
|
|
|
2024-01-18 20:29:41 +01:00
|
|
|
fmt:
|
2024-01-11 12:03:43 +01:00
|
|
|
#!/usr/bin/env nu
|
2024-01-18 20:29:41 +01:00
|
|
|
cargo fmt
|
|
|
|
echo "Places where whitespace is at the end of a line:"
|
|
|
|
rg '\s$'
|