Add the following to conf.py:
def remove_module_docstring(app, what, name, obj, options, lines):
if what == "module" and name == "yourmodule":
del lines[:]
def setup(app):
app.connect("autodoc-process-docstring", remove_module_docstring)
This code removes the module docstring in the yourmodule
module by providing a handler for the autodoc-process-docstring event.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…