Skip to main content Accessibility Feedback

An ebook boilerplate

If you’ve ever wanted to publish your own ebook, but weren’t sure how, I’ve open sourced my ebook boilerplate.

All of my pocket guides are written in markdown.

My ebook boilerplate is a command-line script that uses Pandoc, wkhtmltopdf, and Calibre to compile all of the files, syntax highlight code snippets, and automatically generate all of the file formats.

  • PDF
  • EPUB
  • MOBI (for Kindles and such)
  • HTML

It also optionally compiles all four files into a handy zip file for easy distribution.

Check it out on GitHub.