secluded/gen

12 lines
681 B
Plaintext
Raw Normal View History

2021-11-10 09:05:47 +00:00
#!/bin/bash
export WEBROOT=public
hugo --cleanDestinationDir
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/