This is a minimal Pandoc config and templates that I've used when working on Production Ready GraphQL. It generates both a PDF and an EPUB book from markdown found in the book
folder.
Generating the book artifacts is as simple as using the generate
script:
./script/generate
The Pandoc manual is your friend!