Generate both light and dark versions of slides
This commit is contained in:
parent
7a762182ef
commit
9a3353b8a2
13
justfile
13
justfile
|
@ -1,11 +1,20 @@
|
|||
_default:
|
||||
@just --list
|
||||
|
||||
generate name theme="light":
|
||||
clean name:
|
||||
find {{ name }} -type f -name *.pdf -delete
|
||||
|
||||
generate name: (clean name)
|
||||
cd {{ name }} \
|
||||
&& rst2pdf {{ name }}.rst \
|
||||
--break-level 1 \
|
||||
--fit-background-mode scale \
|
||||
--font-path ../fonts \
|
||||
--output {{ name }}.pdf \
|
||||
--stylesheets opdavies-{{ theme }},tango
|
||||
--stylesheets opdavies-light,tango,vs \
|
||||
&& rst2pdf {{ name }}.rst \
|
||||
--break-level 1 \
|
||||
--fit-background-mode scale \
|
||||
--font-path ../fonts \
|
||||
--output {{ name }}-dark.pdf \
|
||||
--stylesheets opdavies-dark,tango,monokai
|
||||
|
|
Loading…
Reference in a new issue