Skip to content

Commit aa8912a

Browse files
committed
don't repeat the dir name when compiling gallery
1 parent 2f43dca commit aa8912a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ default:
1010
doc:
1111
typst compile docs/manual.typ docs/manual.pdf
1212
for f in $(find gallery -maxdepth 1 -name '*.typ'); do \
13-
f="$(basename "$f" .typ)"; \
14-
typst compile "gallery/$f.typ"; \
15-
typst compile "gallery/$f.typ" "gallery/$f-solved.pdf" --input solution=true; \
13+
f="$(dirname "$f")/$(basename "$f" .typ)"; \
14+
typst compile "$f.typ"; \
15+
typst compile "$f.typ" "$f-solved.pdf" --input solution=true; \
1616
done
1717

1818
mkdir -p tmp

0 commit comments

Comments
 (0)