peterklein / gitbook-pdf-converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitbook-pdf-converter

This is the setup to convert my book into HTML, PDF and ePUB format.

Setup

  1. clone this repo
  2. cd into the cloned repo
  3. yarn setup

Previewing the HTML

  1. yarn preview

Building the PDF

  1. yarn generate:pdf

Building the ePub

You need to have pandoc installed and in your $PATH

  1. yarn generate:epub

Updating the content

Whenever there was an update to the book, you need to update the files in ./content first. You can use yarn update as shortcut if you're too lazy to cd into the folder and git pull it.

About


Languages

Language:HTML 97.7%Language:CSS 1.2%Language:JavaScript 1.1%Language:Shell 0.0%