Skip to content

Instantly share code, notes, and snippets.

@xf-
xf- / netlify-gitbook.sh
Last active February 23, 2019 03:35
Build gitbook indluding ebooks (pdf,epub, mobi) with calibre on netlify - single-line
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/build/calibre/lib/;PATH=$PATH:/opt/build/calibre/bin;wget -nv -O- https://github.com/kovidgoyal/calibre/raw/master/setup/linux-installer.py | python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt/build')";yarn global add svgexport;gitbook install; gitbook build;gitbook pdf ./ ./_book/book.pdf;gitbook mobi ./ ./_book/book.mobi;gitbook epub ./ ./_book/book.epub

Keybase proof

I hereby claim:

  • I am xf- on github.
  • I am xavermaierhofer (https://keybase.io/xavermaierhofer) on keybase.
  • I have a public key whose fingerprint is 8AD5 FBA0 298D 1A22 EE0F 2867 7FDC E23F D2EC 9FE8

To claim this, I am signing this object: