Using github to write a book [closed]

你说的曾经没有我的故事 提交于 2019-12-03 09:45:01

问题


With Github one can write a well-formatted README.md file and document to present the project. Also, there are wiki pages for user to collaborate. I'm wandering what would be an optimal workflow, even for non tech users, to make use of the GitHub platform to write a collaborative book.

How to use markdown but then enhance it by applying a stylesheet, make PDF out of it, organise chapters, have a public site (gh-pages) out of it and so on? Is there such a project or tool chain for GitHub?

In other word, how to easily write a collaborative book with a nice html and PDF output in GitHub? Thanks.


回答1:


Edit: GitBook has changed significantly since I first wrote this answer. PDF support has been dropped, and the CLI toolchain has been abandoned in favour of a proprietary service:

As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.

In mid-2019 mdBook is a good option, though it doesn't natively support PDF. If you have Rust and Cargo installed you can simply

cargo install mdbook

to get started.


Original answer:

This is exactly what GitBook is designed for:

GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc).

It supports PDF output out of the box, as well as online publishing on its own web platform.



来源:https://stackoverflow.com/questions/38954654/using-github-to-write-a-book

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!