# GitBook

Gitbook是一个命令行工具，可以把你的Markdown文件汇集成电子书，并提供PDF等多种格式输出。你可以把Gitbook生成的HTML发布出来，就形成了一个简单的静态网站。Gitbook还有一个同名的平台（gitbook.io），可以发布和销售电子书，并提供了一个Markdown客户端工具（支持Mac、Windows和Linux）帮助写作。

> [使用Gitbook制作电子书](http://www.ituring.com.cn/article/127645)

Gitbook是技术工作者协作撰写文档的利器（通过git管理协作），可以实时查看自己撰写的文档，同时也方便发布到协作平台。

可以先阅读一些中文入门介绍文档，增加感性认识：

* [使用Gitbook制作电子书](http://www.ituring.com.cn/article/127645)
* [GitBook 简明教程](http://www.chengweiyang.cn/gitbook/index.html)

然后可以看看我的一些实践笔记：

* [使用GitBook撰写书籍](/cloud-atlas-draft/develop/doc/gitbook/using_gitbook_write_book.md)
* [如何在一台主机同时运行多个GitBook](/cloud-atlas-draft/develop/doc/gitbook/run_multi_gitbook_in_one_host.md)
* [GitBook评论插件](/cloud-atlas-draft/develop/doc/gitbook/gitbook_discussions.md)
* [GitBook单章节展开插件](/cloud-atlas-draft/develop/doc/gitbook/gitbook_toggle_chapters.md)
* [GitBook代码段添加文件名](/cloud-atlas-draft/develop/doc/gitbook/gitbook_codeblock_filename.md)
* [GitBook多国语言](/cloud-atlas-draft/develop/doc/gitbook/gitbook_multi_language.md)
* [GitBook嵌入视频](/cloud-atlas-draft/develop/doc/gitbook/gitbook_video.md)

另外，在medium上有 [Publish Your Book Online with GitBook](https://medium.com/@rebeccapeltz/publish-your-book-online-with-gitbook-fc0ce9b7f12) 非常详细介绍了gitbook使用方法。

![发布图书](/files/-M1TAPOh-LJH0UxWzaH3)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/develop/doc/gitbook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
