简体   繁体   English

从GitWiki创建Gitbook / pdf的最小步骤是什么?

[英]What is the minimal step to create a Gitbook/pdf from GitWiki?

Similar questions: Create gitbook from github wiki pages , How to import a markdown file from github into local gitbook 类似的问题: 从github Wiki页面创建gitbook如何从github将markdown文件导入本地gitbook

I need to read some documentation, and wish to save it all as PDFs (to read on my gigantor-ereader ;). 我需要阅读一些文档,并希望将所有文档另存为PDF(以便在我的gigantor-ereader上阅读;)。 Inspired by this answer to yet another similar question: 受到这个答案的启发,又回答了一个类似的问题:

This is exactly what GitBook is designed for ... It supports PDF output out of the box, as well as online publishing on its own web platform. 这正是GitBook设计的目的。它支持开箱即用的PDF输出以及在自己的Web平台上在线发布。

I jumped in with both feet and installed: 我用双脚跳入并安装:

I did $ gitbook init in the local GitWiki. 我在本地GitWiki中执行了$ gitbook init This gave me some of the basic files gitbook uses. 这给了我gitbook使用的一些基本文件。 I can serve a gitbook and generate a pdf, so I know my software installation was successful. 我可以提供gitbook并生成pdf,因此我知道我的软件安装成功。

Unfortunately, the gitbook is empty. 不幸的是,gitbook是空的。 I can't find any instructions to add the md files, which are located in the same directory, to the gitbook I init'd. 我找不到将位于同一目录中的md文件添加到我创建的gitbook的任何说明。

What's the minimum steps necessary to gitbook a gitwiki? gitbook gitwiki所需的最少步骤是什么?

Ever since v2, Gitbook removed their official PDF export feature. 从v2开始,Gitbook取消了其官方的PDF导出功能。 If you're using Gitbook V2, I've just released this CLI tool to create PDFs from your Gitbook. 如果您使用的是Gitbook V2,则我刚刚发布了此CLI工具,用于从您的Gitbook创建PDF。 My company is already using to send books to print publishers. 我的公司已经在使用将书籍发送给印刷出版商。 It's free and open source, so please give it a test: https://www.forgebox.io/view/gitbook-exporter 它是免费的开源软件,因此请对其进行测试: https : //www.forgebox.io/view/gitbook-exporter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM