Skip to content

Commit

Permalink
don't repeat the dir name when compiling gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyFreak committed Oct 20, 2024
1 parent 5eefff7 commit 5c10cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ default:
doc:
typst compile docs/manual.typ docs/manual.pdf
for f in $(find gallery -maxdepth 1 -name '*.typ'); do \
f="$(basename "$f" .typ)"; \
typst compile "gallery/$f.typ"; \
typst compile "gallery/$f.typ" "gallery/$f-solved.pdf" --input solution=true; \
f="$(dirname "$f")/$(basename "$f" .typ)"; \
typst compile "$f.typ"; \
typst compile "$f.typ" "$f-solved.pdf" --input solution=true; \
done

mkdir -p tmp
Expand Down

0 comments on commit 5c10cfb

Please sign in to comment.