gitea 支持 .rst 格式化
为 Gitea 开启并配置 reStructuredText 文档渲染。
本页目录
https://github.com/go-gitea/gitea/issues/374#issuecomment-423688581
-
pip 安装
docutils -
修改
app.ini[markup.restructuredtext] ENABLED = true FILE_EXTENSIONS = .rst RENDER_COMMAND = rst2html.py IS_INPUT_FILE = false -
修改模板文件。
rst2html.py --help中--template参数有写默认位置,或者用此参数自定义 template 位置。模板文件内容为:%(body_pre_docinfo)s %(docinfo)s %(body)s