i've spent more time than i'd like to admit trying to build one, and finally did successfully, and here is how to do it on osx:
- install gitbook by running
npm install gitbook-cli -g
- download this project and extract it
- inside it run 'gitbook install'
- download Calibre application https://calibre-ebook.com/download
- move the
calibre.app to your Applications folder
- create a symbolic link
sudo ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin
- if its still gives an error after creating a symbolic link you can add it to your PATH to fix it
export PATH=$PATH:/Applications/calibre.app/Contents/MacOS
- now it should work, inside the directory run
gitbook pdf
i think thats about it, good luck.
i've spent more time than i'd like to admit trying to build one, and finally did successfully, and here is how to do it on osx:
npm install gitbook-cli -gcalibre.appto your Applications foldersudo ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/binexport PATH=$PATH:/Applications/calibre.app/Contents/MacOSgitbook pdfi think thats about it, good luck.