add build script

This commit is contained in:
Amolith 2021-11-10 04:05:47 -05:00
parent 7afd7c310a
commit 95d674e959
Signed by: Amolith
GPG Key ID: 5548AD9930655715
1 changed files with 11 additions and 0 deletions

11
gen Executable file
View File

@ -0,0 +1,11 @@
#!/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
rsync -avmzz public/ hel1-srv1:/var/www/secluded/