File tree 7 files changed +49
-0
lines changed
7 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 10
10
- [ 输出PDF] ( output/pdfandebook.md )
11
11
* [ 发布] ( publish/README.md )
12
12
- [ 发布到Github Pages] ( publish/gitpages.md )
13
+ - [ 发布到GitBook] ( publish/gitbook.md )
13
14
* [ 结束] ( end/README.md )
Original file line number Diff line number Diff line change
1
+ {
2
+ "links" : {
3
+ "sharing" : {
4
+ "google" : " https://plus.google.com/+WyattWang" ,
5
+ "twitter" : " https://twitter.com/wwq0327"
6
+ }
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ 发布到gitbook
2
+ ====
3
+
4
+ 将本地预览没有问题的代码上传到GitHub之后,可以在GitBook中新建立图书,并从GitHub直接导入,并生成图书到GitBook
5
+
6
+ ## 注册GitBook账号
7
+
8
+ - 在[ GitBook] ( https://www.gitbook.com ) 首页注册新会员。
9
+ - 验证邮箱并补全详细信息。
10
+ - 关联GitHub账号授权,此处可以忽略,之后新建图书时如果未授权,会有授权提示。
11
+
12
+ ## 从GitHub项目中导入
13
+
14
+ 在页面右上角点击 Create a new book 按钮来新建图书
15
+
16
+ ![ ] ( ../imgs/createbook.png )
17
+
18
+ 如果之前已经授权此处可以直接选择图书项目,未授权时点击按钮进行授权。
19
+
20
+ ![ ] ( ../imgs/authorization.png )
21
+
22
+ 输入GitHub密码,进行授权,授权成功之后,回到新建图书页面,就可以看到关联账号下所有的项目。
23
+ 选择对应项目之后,点击创建,会提示创建成功,可以点击链接,今日详情页面
24
+
25
+ ![ ] ( ../imgs/bulid.png )
26
+
27
+ 可以选择View your book 选择在线预览,就是你现在看到的页面
28
+
29
+ ![ ] ( ../imgs/yl.png )
30
+
31
+ ## 从GitHub更新文章内容
32
+
33
+ 图书在本地修改之后,git push 提交到git版本库中,然后再GitBook后台进行图书重新编译的操作,将最新内容更新到GitBook。
34
+
35
+ GitBook图书历史记录图书内容的每次修改,在下图中的 Book History 可以选择重新编译,生成最新版本的图书。
36
+
37
+ ![ ] ( ../imgs/history.png )
38
+
39
+ 编译结果与第一次导入图书结果基本一致
40
+
You can’t perform that action at this time.
0 commit comments