X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=docs%2Fconf.py;h=babac9d3e8689ba0c5a230c095fe1af9419aa428;hb=a2cb839d6932060ea00ad9b9d7c198ab310affe4;hp=7b5287fbe7947a9098cb833fc1455054e619f131;hpb=69566c003b4f1c3a4905f37d3735d7921502d14a;p=pyutils.git diff --git a/docs/conf.py b/docs/conf.py index 7b5287f..babac9d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,3 +60,16 @@ html_theme = 'sphinx_rtd_theme' # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + + +# Don't skip __init__()! +def skip(app, what, name, obj, would_skip, options): + if name == "__init__": + return False + if name == "__repr__": + return False + return would_skip + + +def setup(app): + app.connect("autodoc-skip-member", skip)