是否可以协调 github 和 docutils buildhtml?
如果 reStructuredText 文件的扩展名是 .rst
,Github 将解析该文件。 docutils buildhtml.py
只会解析扩展名为 .txt
的文件,我看不到更改它的选项。这非常烦人。有什么方法可以让 Github 将 .txt
文件识别为 RST 或 buildhtml 识别 .rst
文件?
Github will parse a reStructuredText file if its extension is .rst
. The docutils buildhtml.py
will only parse files with the extension .txt
, and I can't see an option to change that. This is massively annoying. Is there any way to get Github to recognise .txt
files as RST or buildhtml to recognise .rst
files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您可以只使用符号链接?
Perhaps you can just use a symlink?
buildhtml.py
似乎只是一个目录遍历器docutils 的内部结构。考虑到它的尺寸较小,最简单的解决方案可能只是修改它以满足您的需求,将.txt
测试替换为.rst
测试。buildhtml.py
appears to just be a directory walker wrapped around docutils' internals. Considering its small size, the simplest solution is probably to just modify it to suit your needs by replacing the.txt
test with a.rst
test.