增加gitbook pdf生成说明

pull/10/head
Jimmy Song 2017-05-11 18:22:00 +08:00
parent 0a94c3275a
commit 17be691ae7
3 changed files with 52 additions and 1 deletions

View File

@ -29,7 +29,8 @@ GitHub地址https://github.com/rootsongjc/kubernetes-handbook
- [2.4 kubernetes网络和集群性能测试](15-kubernetes网络和集群性能测试.md)
- [2.5 边缘节点配置](18-边缘节点配置.md)
- 3.0 Kubernetes中的容器设计模式 TODO
- 4.0 Kubernetes中的概念解析 TODO
- 4.0 Kubernetes中的概念解析
- [4.1 Deployment概念解析](20-deployment概念解析.md)
- 5.0 Kubernetes的安全设置
- [5.1 Kubernetes中的RBAC支持](13-kubernetes中的RBAC支持.md)
- 6.0 Kubernetes网络配置
@ -63,6 +64,22 @@ GitHub地址https://github.com/rootsongjc/kubernetes-handbook
**生成pdf**
[下载Calibre](http://calibre-ebook.com/download)
在Mac下安装后使用该命令创建链接
```
ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin
```
在该项目目录下执行以下命令生成`kubernetes-handbook.pdf`文档。
```
gitbook pdf . ./kubernetes-handbook.pdf
```
**生成单个章节的pdf**
使用`pandoc`和`latex`来生成pdf格式文档。
```shell

View File

@ -20,6 +20,7 @@
* [2.5 边缘节点配置](18-边缘节点配置.md)
* [3.0 Kubernetes中的容器设计模式]()
* [4.0 Kubernetes中的概念解析]()
* [4.1 Deployment概念解析](20-deployment概念解析.md)
* [5.0 Kubernetes的安全设置]()
* [5.1 Kubernetes中的RBAC支持](13-kubernetes中的RBAC支持.md)
* [6.0 Kubernetes网络配置]()

33
book.json 100644
View File

@ -0,0 +1,33 @@
{
"title": "Kubernetes Handbook",
"description": "Let's play fun with kubernetes!",
"language": "zh-cn",
"author": "Jimmy Song",
"plugins": [
"github",
"codesnippet",
"splitter",
"page-toc-button",
"image-captions",
"page-footer-ex",
"editlink",
"-lunr", "-search", "search-plus"
],
"pluginsConfig": {
"github": {
"url": "https://github.com/rootsongjc/kubernetes-handbook"
},
"editlink": {
"base": "https://github.com/rootsongjc/kubernetes-handbook/blob/master/",
"label": "编辑本页"
}
},
"page-footer-ex": {
"copyright": "Jimmy Song",
"update_label": "最后更新:",
"update_format": "YYYY-MM-DD HH:mm:ss"
},
"image-captions": {
"caption": "图片 - _CAPTION_"
}
}