mirror of
https://github.com/captn3m0/google-sre-ebook.git
synced 2024-09-10 13:46:41 +00:00
Only use ebook-convert for mobi
This commit is contained in:
parent
265d11a3b5
commit
04f0a1d6f4
@ -74,6 +74,7 @@ pandoc --from=html --to=epub \
|
||||
--metadata title="$BOOK_NAME" \
|
||||
complete.html
|
||||
|
||||
# generate PDF from HTML
|
||||
pandoc --from=html --to=pdf \
|
||||
--output=../../../../../${BOOK_FILE}.pdf \
|
||||
--metadata title="$BOOK_NAME" \
|
||||
@ -97,10 +98,8 @@ pandoc --from=html --to=pdf \
|
||||
|
||||
popd
|
||||
|
||||
# Generate other format from epub.
|
||||
for EXTENSION in mobi pdf; do
|
||||
ebook-convert ${BOOK_FILE}.epub ${BOOK_FILE}.${EXTENSION}
|
||||
done
|
||||
# Generate mobi using calibre
|
||||
ebook-convert ${BOOK_FILE}.epub ${BOOK_FILE}.mobi
|
||||
|
||||
# If it works inside docker.
|
||||
if [ "$MODE" == "docker" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user