Skip to content

Commit

Permalink
Merge pull request #37 from ntwk/master
Browse files Browse the repository at this point in the history
Replace Pandoc -S switch with +smart extension and update documentation
  • Loading branch information
jagregory committed Aug 13, 2019
2 parents 9892775 + b61c1dc commit d34abb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ all: html epub mobi
html:
rm -rf out/html && mkdir -p out/html
cp -r images html/book.css out/html/
pandoc -S --to html5 -o out/html/black-book.html --section-divs --toc --standalone --template=html/template.html $(FILES)
pandoc --to html5+smart -o out/html/black-book.html --section-divs --toc --standalone --template=html/template.html $(FILES)

epub:
mkdir -p out
rm -f out/black-book.epub
pandoc -S --to epub3 -o out/black-book.epub --epub-cover-image images/cover.png --toc --epub-chapter-level=2 --data-dir=epub --template=epub/template.html $(FILES)
pandoc --to epub3+smart -o out/black-book.epub --epub-cover-image images/cover.png --toc --epub-chapter-level=2 --data-dir=epub --template=epub/template.html $(FILES)

mobi:
rm -f out/black-book.mobi
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Some larger changes could be made to improve the content. I'd love to see some o

You need to have the following software installed and on your `PATH` before you begin:

* [pandoc](http://johnmacfarlane.net/pandoc/) for Markdown to HTML and EPUB conversion.
* [kindlegen](http://www.amazon.com/gp/feature.html?docId=1000765211) for EPUB to Mobi conversion.
* [pandoc](http://johnmacfarlane.net/pandoc/) version 2.0 or greater for Markdown to HTML and EPUB conversion.
* [kindlegen](http://www.amazon.com/gp/feature.html?docId=1000765211) for Epub to Mobi conversion.

To generate an e-reader friendly version of the book, you can use `make` with one of the following options:

Expand Down

0 comments on commit d34abb2

Please sign in to comment.