-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (26 loc) · 1.15 KB
/
Copy pathjustfile
File metadata and controls
34 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
default:
@just --list
# Prefer nextest if installed; fall back to cargo test.
test:
if command -v cargo-nextest >/dev/null 2>&1; then cargo nextest run; else cargo test; fi
check:
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
just test
docs:
RUSTDOCFLAGS="-D warnings --html-in-header docs/katex-header.html" cargo doc --all-features --no-deps
@echo "Docs generated at: target/doc/subsume/index.html"
docs-open: docs
if command -v open >/dev/null 2>&1; then open target/doc/subsume/index.html; \
elif command -v xdg-open >/dev/null 2>&1; then xdg-open target/doc/subsume/index.html; \
elif command -v start >/dev/null 2>&1; then start target/doc/subsume/index.html; \
else echo "Open: target/doc/subsume/index.html"; fi
docs-watch:
RUSTDOCFLAGS="-D warnings --html-in-header docs/katex-header.html" cargo watch -x "doc --all-features --no-deps"
clqa-eval MODE="box":
./scripts/run_clqa_eval.sh "{{MODE}}"
typst-docs:
./docs/typst/build.sh
typst-preview FILE:
if [[ -z "{{FILE}}" ]]; then echo "Usage: just typst-preview <filename>"; exit 1; fi
./docs/typst/preview.sh "{{FILE}}"