Single Source Document Publishing Example Template
CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
chapters
epub-build
html-build
img
Makefile
README.md
index.html
the-book-title.epub
the-book-title.md
the-book-title.pdf
the-book-title.rtf

README.md

Single Source Publishing Example for HTML, ePub, RTF, PDF, and Mobi Formats

About

This is an example set-up for generating multiple output formats, most notably ePub, from a single input format. It's based on software authoring tools and using a command line interface (cli) so will likely be a bad fit unless you have familiarity with these tools.

Specifics are:

  • Input file format is Markdown
  • Output formats are HTML, ePub, RTF, PDF, and Mobi
  • Multiple input files are supported, so large writing projects can be broken into logical segments (e.g. chapters or sections)

This example is entirely based on the set-up used by Addy Osmani for his book Developing Backbone.js Applications.

Building

The output files are generated with the command make or make -f Makefile. This will create the HTML, ePub, Mobi, PDF and RTF versions of your input file(s).

Dependencies

  • Make
  • Pandoc
  • pdflatex (and recommended latex fonts)