repo: make typst compilation more generic

This commit is contained in:
multisn8 2024-01-02 02:45:20 +01:00
parent 388827a50e
commit 6217a984a2
Signed by untrusted user: multisamplednight
GPG key ID: C81EF9B053977241
2 changed files with 6 additions and 2 deletions

1
docs/compiled/.gitkeep Normal file
View file

@ -0,0 +1 @@
the just script will place compiled pdfs in here. thank you for your understanding.

View file

@ -1,2 +1,5 @@
doc-design:
typst compile docs/design/*.typ --root=docs
docs:
for doc in $(fd '.typ' './docs' --exclude 'template*' --exclude 'util*'); do \
typst compile $doc --root=docs; \
mv "$(dirname $doc)/$(basename $doc .typ).pdf" docs/compiled/; \
done