Is there a way to create an intermediate output from Sphinx extensions?

青春壹個敷衍的年華 提交于 2019-12-21 22:07:34

问题


When sphinx processes an rst to html conversion is there a way to see an intermediate format after extensions have been processed?

I am looking for an intermediate rst file that is generated after sphinx extensions were run.

Any ideas?

thanks

pmoosh


回答1:


Take a look at the "ReST Builder" extension: https://pythonhosted.org/sphinxcontrib-restbuilder/.

There's not much to say; the extension takes reST as input and outputs ...drumroll... reST!

Quote:

This extension is in particular useful to use in combination with the autodoc extension. In this combination, autodoc generates the documentation based on docstrings, and restbuilder outputs the result are reStructuredText (.rst) files. The resulting files can be fed to any reST parser, for example, they can be automatically uploaded to the GitHub wiki of a project.



来源:https://stackoverflow.com/questions/19523151/is-there-a-way-to-create-an-intermediate-output-from-sphinx-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!