diff --git a/doc/conf.py b/doc/conf.py index 5d7a4e8a041fb21f1aad1382f73682495b1f6078..42cb63ce4a3801fcd87aaa936e64d66a0787db0b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -210,6 +210,16 @@ numpydoc_show_class_members = False autodoc_member_order = 'bysource' autodoc_docstring_signature = False +def process_docstring(app, what, name, obj, options, lines): + for i, line in enumerate(lines): + if "arg1" in line and "->" in line: + lines[i] = "" + if "C++ signature :" in line or "graph_tool::Python" in line: + lines[i] = "" + +def setup(app): + app.connect('autodoc-process-docstring', process_docstring) + # plot directive import pyenv plot_rcparams = pyenv.rcParams diff --git a/doc/gt_theme/static/gt_style.css b/doc/gt_theme/static/gt_style.css index c8f2c7ee4c38485565157c38650c1b5f54f25e8c..a62250ce7a3b296b9c31dcecb8d373d50487e3bd 100644 --- a/doc/gt_theme/static/gt_style.css +++ b/doc/gt_theme/static/gt_style.css @@ -29,21 +29,21 @@ table.docutils.citation } /* stupid workaround to hide ugly c++ signature stuff from sphinx*/ -dl.method dl.last { - visibility: collapse; - height: 0px; - width: 0px; -} - -dl.method dl.docutils dd { - margin-left: 0px; - margin-bottom: -10px; -} - -dl.method dl.docutils dt { - visibility: collapse; - line-height: 0; -} +/* dl.function dl.docutils dl.last { */ +/* visibility: collapse; */ +/* height: 0px; */ +/* width: 0px; */ +/* } */ + +/* dl.function dl.docutils dd { */ +/* margin-left: 0px; */ +/* margin-bottom: -10px; */ +/* } */ + +/* dl.function dl.docutils dt { */ +/* visibility: collapse; */ +/* line-height: 0; */ +/* } */ div.align-center { text-align: center;