Skip to content

Commit

Permalink
chore: split watch into docs and example
Browse files Browse the repository at this point in the history
  • Loading branch information
jomaway committed Mar 10, 2024
1 parent 6ff38cd commit 9d2feee
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ default:

# generate example pdf
gen-example:
typst compile --root {{ self }} examples/example.typ
typst compile --root {{ self }} examples/example.typ

# generate bytefield manual
gen-docs:
typst compile docs/docs.typ --root {{ self }}
typst compile --root {{ self }} docs/docs.typ

# watch examples and docs
watch:
typst watch docs/docs.typ --root {{ self }} & \
typst watch examples/example.typ --root {{ self }} \
&& fg
# watch docs
watch-docs:
typst watch docs/docs.typ --root {{ self }}

# watch example
watch-example:
typst watch examples/example.typ --root {{ self }}

# open the bytefield manual
open-docs:
Expand Down

0 comments on commit 9d2feee

Please sign in to comment.