【问题标题】:How to import a markdown file from github into local gitbook如何从 github 导入 markdown 文件到本地 gitbook
【发布时间】:2017-02-15 12:03:52
【问题描述】:

我尝试将 .md 文件从 github 上的存储库导入到我的本地 gitbook。

我想在我的 Summary.md 文件中做这样的事情:

# Summary

* [Introduction](README.md)

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

在这种情况下,它只是一个链接。

如何导入文件?

我搜索了它,但找不到任何答案。

这可能吗?

我们将不胜感激。

【问题讨论】:

  • “它只是一个链接” 是的,那是因为您使用的是链接的语法。你想做什么?是否要将托管在 GitHub 上的 README.md 文件的全部内容包含在该列表元素中?
  • 我知道怎么做(检查我的答案)谢谢。

标签: github markdown gitbook


【解决方案1】:

我知道怎么做。

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

在文件中我需要这一行:

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

SUMMARY.md我刚刚添加了对BUTTON-COLOR.md的引用:

# Summary

* [Introduction](README.md)

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

【讨论】:

  • 如何从不同repo的标签导入
猜你喜欢
  • 2016-09-24
  • 1970-01-01
  • 2019-10-10
  • 1970-01-01
  • 2020-04-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多