美文网首页
如何在Mac上将gitbook转换成离线点子书

如何在Mac上将gitbook转换成离线点子书

作者: 做一个先飞的笨鸟 | 来源:发表于2016-05-31 16:44 被阅读0次

在我们的生活中,有时我们需要把一个gitbook点子书转换成pdf,epub或者mobi等格式的文档,我们可以通过下面的方式来完成这件事。

下载你要转换的文档

你可以从gitbook上现在任意一个你想要转换的电子书。

你可以通过以下步骤创建你自己的点子书

  • install Calibre
  • add it to your path:
$ ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin
  • install gitbook using npm:
$ npm install gitbook-cli -g
  • in the root folder of your Redux clone (e.g. ~/repositories/redux/), run:
$ gitbook pdf . docs/redux-documentation.pdf
$ gitbook epub . docs/redux-documentation.epub
$ gitbook mobi . docs/redux-documentation.mobi
  • I use the create-docs script from this repository and run it in a clone of the official Redux repository.

参考原文

相关文章

网友评论

      本文标题:如何在Mac上将gitbook转换成离线点子书

      本文链接:https://www.haomeiwen.com/subject/gsocdttx.html