talks/working-with-workspace/code/workspace-talks.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
934 B
Plaintext
Raw Normal View History

2021-02-01 02:21:44 +00:00
attributes:
rst2pdf:
command: |
= 'rst2pdf ' ~ @('rst2pdf.filename.rst') ~ '
--break-level 1
--stylesheets main
--fit-background-mode scale
--extension-module preprocess
--output ' ~ @('rst2pdf.filename.pdf')
filename:
pdf: slides.pdf
rst: slides.rst
thumbnail:
filename: thumbnail.png
command('pdf generate <talk>'): |
#!bash|=
cd ={ input.argument('talk') }
passthru ={ @('rst2pdf.command') }
command('pdf watch <talk>'): |
#!bash|=
cd ={ input.argument('talk') }
passthru nodemon -e rst,style,txt -x "={ @('rst2pdf.command') }"
command('thumbnail <talk>'):
env:
PDF_FILENAME: = @('rst2pdf.filename.pdf')
THUMBNAIL_FILENAME: = @('thumbnail.filename')
exec: |
#!bash|=
cd ={ input.argument('talk') }
passthru gs -sDEVICE=png16m -r300 -dDownScaleFactor=4
-sOutputFile=$THUMBNAIL_FILENAME -dLastPage=1 $PDF_FILENAME