From 6217a984a24b02adedb2dd0316ff7da2b7e4cfc9 Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Tue, 2 Jan 2024 02:45:20 +0100 Subject: [PATCH] repo: make typst compilation more generic --- docs/compiled/.gitkeep | 1 + justfile | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 docs/compiled/.gitkeep diff --git a/docs/compiled/.gitkeep b/docs/compiled/.gitkeep new file mode 100644 index 0000000..a682a23 --- /dev/null +++ b/docs/compiled/.gitkeep @@ -0,0 +1 @@ +the just script will place compiled pdfs in here. thank you for your understanding. diff --git a/justfile b/justfile index 9228b4c..a240f64 100644 --- a/justfile +++ b/justfile @@ -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