如何让gitbook与github仓库关联

1、帐号注册html

分别https://legacy.gitbook.com/loginhttps://github.com/注册帐号。git

https://legacy.gitbook.com/login登陆时候最好选择github登陆github

2、github上新建一个仓库如markdown

https://github.com/wjf444128852/bloghtm

一、gitbook内新建一本书籍,blog

二、模板选项中选择GITHUB,以下图路由

以后点击Creat Book便可建立完成。这样的gitbook在线书籍地址就是:https://wjf444128852.gitbooks.io/notes/content/get

这样就会默认和github仓库关联,只要仓库有新的push,上面的书籍地址就会更新。it

3、关于路由和内容io

能够直接在网页上添加路由和内容保存就会发布。 

或者使用:git和markdown结合。

这个仓库:https://github.com/wjf444128852/blog对应的文件内容以下,

 

路由配置在SUMMARY.md

参考连接:

https://toolchain.gitbook.com/

https://github.com/GitbookIO/gitbook

http://www.chengweiyang.cn/gitbook/index.html

 

因为gitbook改版,https://www.gitbook.com/目前不支持与github仓库关联,https://legacy.gitbook.com/是能够的

相关文章
相关标签/搜索