mirror of
https://github.com/greyscalepress/manifestos.git
synced 2024-10-01 05:25:35 -04:00
Add epub building
This commit is contained in:
parent
79f3772c99
commit
c50b58054f
@ -16,6 +16,7 @@ TEMP2="../temp/newfile2.txt"
|
|||||||
##TIMESTAMP=$(date +"%s")
|
##TIMESTAMP=$(date +"%s")
|
||||||
TIMESTAMP=$(date -u +%Y%m%d_%H%M%SZ)
|
TIMESTAMP=$(date -u +%Y%m%d_%H%M%SZ)
|
||||||
OUTPUT="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".pdf"
|
OUTPUT="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".pdf"
|
||||||
|
OUTPUTEPUB="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".epub"
|
||||||
|
|
||||||
## Create the temp and output folder if they does not exist
|
## Create the temp and output folder if they does not exist
|
||||||
if [ ! -d "../temp" ]; then
|
if [ ! -d "../temp" ]; then
|
||||||
@ -84,4 +85,18 @@ pandoc -f markdown --template=../templates/customV2 $TEMP \
|
|||||||
--include-before-body=../content/intro.txt \
|
--include-before-body=../content/intro.txt \
|
||||||
-o $OUTPUT
|
-o $OUTPUT
|
||||||
|
|
||||||
|
pandoc -f markdown --template=../templates/custom $TEMP \
|
||||||
|
--pdf-engine=xelatex \
|
||||||
|
--variable mainfont="HKGrotesk-Regular" \
|
||||||
|
--variable boldfont="LinLibertineOB" \
|
||||||
|
--variable italicfont="LinLibertineOI" \
|
||||||
|
--variable fontsize=9pt \
|
||||||
|
--variable urlcolor=black \
|
||||||
|
--variable linkcolor=black \
|
||||||
|
--variable documentclass=book \
|
||||||
|
--toc --toc-depth=1 \
|
||||||
|
--listings \
|
||||||
|
--include-before-body=../content/intro.txt \
|
||||||
|
-o $OUTPUTEPUB
|
||||||
|
|
||||||
## End of file
|
## End of file
|
||||||
|
Loading…
Reference in New Issue
Block a user