learngo icon indicating copy to clipboard operation
learngo copied to clipboard

output formats

Open bketelsen opened this issue 7 years ago • 5 comments

investigate how to output formats other than HTML. I'm pretty sure gitbook supports this. If so, generate them using the same hooks we're using for deployment and link to them for download.

bketelsen avatar Nov 07 '17 15:11 bketelsen

If you mean PDF/Mobi and epub you need to enable it in your book settings:

gitbook-format after this you get an download dropdown button: gitbook-download

ghost avatar Nov 07 '17 19:11 ghost

yes, but we're not deployed on gitbook.com, we're self-hosting.

bketelsen avatar Nov 07 '17 23:11 bketelsen

gitbook {pdf,mobi,epub} does the trick. they are output to the current folder. It would be nice to modify the language landing page to offer links to each + HTML version as a choice.

bketelsen avatar Nov 07 '17 23:11 bketelsen

The only way would be to do make an folder for them write an nodejs build script for this and then link the output files directly to the landing page.

There seems to be an GitBook plugin for this:

download-pdf-link

I started with GitBook also recently and a great example for an landing page and also Leanpub compatible format is: https://github.com/thewhitetulip/web-dev-golang-anti-textbook

I hope this helps.

ghost avatar Nov 09 '17 13:11 ghost

Just a heads up you should take a look at GitBook-beta there are changes coming for multilang support and landing page modifications in the next release.

ghost avatar Nov 09 '17 13:11 ghost