[英]How to import a markdown file from github into local gitbook
I try to import an .md file from a repo on github into my local gitbook. 我尝试从github上的仓库中导入.md文件到本地gitbook中。
I want to do something like this in my SUMMARY.md file: 我想在summary.md文件中执行以下操作:
# Summary
* [Introduction](README.md)
* [button-color](https://github.com/blah/button-color/blob/master/README.md)
In this case it becomes only a link. 在这种情况下,它仅成为链接。
How can I import the file? 如何导入文件?
I googled it but can't find any answer. 我用谷歌搜索,但找不到任何答案。
Is this even possible? 这有可能吗?
Help would be greatly appreciated. 帮助将不胜感激。
I found out how to do it. 我知道了怎么做。
I created a BUTTON-COLOR.md
file. 我创建了一个BUTTON-COLOR.md
文件。
In the file I needed this line: 在文件中,我需要这一行:
{% include "git+https://github.com/blah/button-color.git/README.md" %}
In SUMMARY.md
i Just added the reference to BUTTON-COLOR.md
: 在SUMMARY.md
我刚刚添加了对BUTTON-COLOR.md
的引用:
# Summary
* [Introduction](README.md)
* [button-color](BUTTON-COLOR.md)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.