Don't skip __init__() methods when generating docs

This commit is contained in:
Nicola Soranzo
2016-11-02 20:28:27 +00:00
parent 8f89a04eae
commit 83760e6a01
+12 -1
View File
@@ -43,9 +43,20 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sp
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
#configure default autodoc's action
# Configure default autodoc's action
autodoc_default_flags = [ 'members', 'undoc-members', 'show-inheritance' ]
def dont_skip_init(app, what, name, obj, skip, options):
if name == "__init__":
return False
return skip
def setup(app):
app.connect("autodoc-skip-member", dont_skip_init)
# The suffix of source filenames.
source_suffix = ['.rst', '.md']