Commit graph

12 commits

Author SHA1 Message Date
Oliver Davies 7fdeffb1af 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`.
2024-05-10 10:08:04 +01:00
Oliver Davies 9f10128230 Allow for compiling other files
Instead of assuming we're always compiling from `slides.rst`, make the
filename dynamic so it can build whatever files are needed.

For example, to generate the demo slides for Test Driven Drupal, I can
run:

```shell
just generate-pdf ./src/test-driven-drupal demo.rst
```

If no filename is specified, default to `slides.rst` and all the slides
will be compiled.
2024-05-09 15:19:01 +01:00
Oliver Davies 8b47c24889 Update syntax highlighting styles 2024-05-09 13:57:30 +01:00
Oliver Davies ea3fcd0704 Use the talk path instead of just the name
Pass the path to the talk directory - e.g.
`just generate ./src/test-driven-drupal` instead of just the talk
name/slug.

This doesn't change where the files are sourced from or output, but this
makes it easier to use `just generate` as I can use tab completion when
executing the command - making it quicker and less prone to typos.
2024-05-09 11:06:40 +01:00
Oliver Davies 4f6ca80035 Update stylesheets 2024-05-09 10:45:06 +01:00
Oliver Davies d3c7984925 Add justfile 2024-04-21 23:07:57 +01:00
Oliver Davies 1586971eea build(flake): remove just 2023-10-11 19:22:13 +01:00
Oliver Davies 8b18e05fbc wip 2023-05-06 12:24:30 +01:00
Oliver Davies 63bf55b978 build: delete .rst.build_temp files 2023-02-23 15:09:41 +00:00
Oliver Davies 0ad2dafa89 justfile: include the preprocess rst2pdf plugin 2023-02-14 23:30:06 +00:00
Oliver Davies 9a3353b8a2 Generate both light and dark versions of slides 2023-01-12 17:21:57 +00:00
Oliver Davies 6640ded8c3 update slides before PHP Stoke 2023-01-12 17:21:44 +00:00