前言
关于新版的gitbook,官方已经不支持导出pdf等电子书格式,官方的解读如下:
截止到20191103官方暂未支持导出pdf,未来可能添加该功能
PDF and other ebook formats exports ?
The new version of GitBook no longer supports exporting to PDF and other ebooks format. A lot of rich-content does not translate well from the Web to PDF. GitBook will expose a developer API for people to consume and extend their content. It is not excluded that someone build a PDF export tool using the API, but it will not be officially supported. See the section about offline access if this is the part you cared about.
但是并不意味着就不能用其他方法生成,网上检索和测试了几种方法,这里作一下记录和分享
声明: 以下方法使用系统均为ubuntu 18.04
,windows请自行探索!!
方法一:
- 安装npm
sudo apt install npm