我正在使用Sphinx为python项目生成文档.输出html不保留docstring中存在的换行符.例:
码
def testMethod(arg1,arg2):
"""
This is a test method
Arguments:
arg1: arg1 description
arg2: arg2 description
Returns:
None
"""
print "I am a test method"
Run Code Online (Sandbox Code Playgroud)
狮身人面像O/P:
TestModule.testMethod(arg1, arg2)
This is a test method
Arguments: arg1: arg1 description arg2: arg2 description
Returns: None
Run Code Online (Sandbox Code Playgroud)
知道怎么解决吗?
我想用我自己的自定义样式扩展Sphinx和ReadTheDocs使用的主题.
我能做到这一点的最佳方式是什么,以便我的改变能够坚持下去?