如何将github的markdown文件导入本地gitbook [英] How to import a markdown file from github into local gitbook

查看:565
本文介绍了如何将github的markdown文件导入本地gitbook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从github上的一个仓库中导入一个.md文件到我的本地gitbook中.

I try to import an .md file from a repo on github into my local gitbook.

我想在自己的Summary.md文件中执行以下操作:

I want to do something like this in my SUMMARY.md file:

# Summary

* [Introduction](README.md)

* [button-color](https://github.com/blah/button-color/blob/master/README.md)

在这种情况下,它仅成为链接.

In this case it becomes only a link.

如何导入文件?

我用它搜索了一下,但是找不到任何答案.

I googled it but can't find any answer.

这有可能吗?

我们将不胜感激.

推荐答案

我发现了如何做.

我创建了一个BUTTON-COLOR.md文件.

在文件中,我需要这一行:

In the file I needed this line:

{% include "git+https://github.com/blah/button-color.git/README.md" %}

SUMMARY.md中,我刚刚将引用添加到BUTTON-COLOR.md:

In SUMMARY.md i Just added the reference to BUTTON-COLOR.md:

# Summary

* [Introduction](README.md)

* [button-color](BUTTON-COLOR.md)

这篇关于如何将github的markdown文件导入本地gitbook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆