开发者

Is it possible to reconcile github and docutils buildhtml?

开发者 https://www.devze.com 2023-03-01 12:28 出处:网络
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.

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?


Perhaps you can just use a symlink?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号