【发布时间】:2020-04-16 20:40:09
【问题描述】:
我希望能够将来自我的存储库的文件中的代码嵌入到我的 github 页面中。 我发现这对 gists 非常有用,但我找不到存储库文件的方法。
举个例子:
- 这是我存储库中的一个文件:
- 这里的要点相同:https://gist.github.com/DGrv/771dd2b1f9c05d8fcf17f3ff84bfc1f3 使用
<script src="https://gist.github.com/DGrv/771dd2b1f9c05d8fcf17f3ff84bfc1f3.js"></script>- 您可以在 here at the middle of the page 中找到带有 txt-to-google-keep-notes.py 代码的示例
有人有解决方案吗? 这可能是 github 增强功能吗?或者这没有意义?
【问题讨论】:
标签: github embed code-snippets gist