secluded/gen

16 lines
779 B
Plaintext
Raw Permalink Normal View History

2021-11-10 09:05:47 +00:00
#!/bin/bash
export WEBROOT=public
2023-02-23 18:38:40 +00:00
hugo
2021-11-10 09:05:47 +00:00
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
2021-12-04 23:11:51 +00:00
rsync -avmzz public/ hel1:/var/www/secluded/
2023-01-27 14:49:12 +00:00
# Image generation
# wkhtmltoimage -f png --width 1200 --height 630 /tmp/file.html /tmp/file.png
# optipng -o4 file.png