You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
779 B

export WEBROOT=public
fd --exact-depth 3 --no-ignore-vcs '.md' -x pandoc -f markdown -t pdf --lua-filter=pandoc_config/images.lua --pdf-engine=xelatex -V 'linkcolor:blue' --listings -H pandoc_config/styles.tex {} -o public/{/.}/{/.}.pdf
fd --exact-depth 3 --no-ignore-vcs '.md' -x pandoc -f markdown -t epub3 --lua-filter=pandoc_config/images.lua --pdf-engine=xelatex -V 'linkcolor:blue' --listings -H pandoc_config/styles.tex {} -o public/{/.}/{/.}.epub
fd --exact-depth 3 --no-ignore-vcs '.md' -x pandoc -f markdown -t plain --lua-filter=pandoc_config/images.lua {} -o public/{/.}/{/.}.txt
rsync -avmzz public/ hel1:/var/www/secluded/
# Image generation
# wkhtmltoimage -f png --width 1200 --height 630 /tmp/file.html /tmp/file.png
# optipng -o4 file.png