The Makefile and pdf template for this and the redis book, I think are great, approachable, examples of using pandoc to generate a multi-format book.
Makefile: https://github.com/karlseguin/scaling-viki/blob/master/Makef...
template: https://github.com/karlseguin/scaling-viki/blob/master/commo...