Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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:

@xf-
xf- / netlify-gitbook.sh
Last active Feb 23, 2019
Build gitbook indluding ebooks (pdf,epub, mobi) with calibre on netlify - single-line
View netlify-gitbook.sh
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