Update justfile recipes
* Hide the `default` recipe by renaming it to `_default` (recipes prefixed with an underscore are hidden from `just --list`. * Re-add the `present` recipe for presenting with `pdfpc`, but making the duration a required argument. * Add a `watch` recipe that watches files for changes and re-generates the PDF. This is based on a given path, e.g. `./src/test-driven-drupal`, and optionally allows for overriding the rst filename if I only want to watch a specfic source file, such as `demo.rst`.
This commit is contained in:
parent
d814d86808
commit
7fdeffb1af
9
justfile
9
justfile
|
@ -1,7 +1,7 @@
|
|||
pdf_filename := 'slides.pdf'
|
||||
thumbnail_filename := 'thumbnail.jpg'
|
||||
|
||||
default:
|
||||
_default:
|
||||
@just --list
|
||||
|
||||
clean:
|
||||
|
@ -35,3 +35,10 @@ generate-pdf talk_path filename="slides.rst":
|
|||
popd
|
||||
|
||||
tree dist
|
||||
|
||||
present slides_path duration *args:
|
||||
pdfpc {{ slides_path }} --duration={{ duration }} {{ args }}
|
||||
|
||||
watch slides_path rst_file="slides.rst":
|
||||
find justfile src/styles {{ slides_path }} -type f | \
|
||||
entr just generate-pdf {{ slides_path }} {{ rst_file }}
|
||||
|
|
Loading…
Reference in a new issue