Skip to content

Commit

Permalink
Added rudimentary epub support
Browse files Browse the repository at this point in the history
  • Loading branch information
TilBlechschmidt committed Mar 1, 2019
1 parent b04589d commit ee2930e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .build/FlagsEPUB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-t epub
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ OUTPUT_FILE="${OUTPUT_FOLDER}/main"
PANDOC_INPUT="src/*.md"
FLAGS_PANDOC=$(cat .build/FlagsGeneral.txt)
FLAGS_PDF="${FLAGS_PANDOC} $(cat .build/FlagsPDF.txt)"
FLAGS_EPUB="${FLAGS_PANDOC} $(cat .build/FlagsEPUB.txt)"
FLAGS_HTML="${FLAGS_PANDOC} $(cat .build/FlagsHTML.txt)"
FLAGS_PLAINTEXT="${FLAGS_PANDOC} $(cat .build/FlagsPlaintext.txt)"

Expand All @@ -31,6 +32,9 @@ build() {
html)
pandoc ${PANDOC_INPUT} ${FLAGS_HTML} -o "${OUTPUT_FILE}.html"
;;
epub)
pandoc ${PANDOC_INPUT} ${FLAGS_EPUB} -t epub -o "${OUTPUT_FILE}.epub"
;;
*)
echo -e "\r\033[1A\033[0KInvalid target: '${TARGET}'"
return -1
Expand Down

0 comments on commit ee2930e

Please sign in to comment.