Commit 2d799f30 authored by Tiago Peixoto's avatar Tiago Peixoto

Remove C++ signature cruft from documentation

parent bd375efd
...@@ -210,6 +210,16 @@ numpydoc_show_class_members = False ...@@ -210,6 +210,16 @@ numpydoc_show_class_members = False
autodoc_member_order = 'bysource' autodoc_member_order = 'bysource'
autodoc_docstring_signature = False 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 # plot directive
import pyenv import pyenv
plot_rcparams = pyenv.rcParams plot_rcparams = pyenv.rcParams
......
...@@ -29,21 +29,21 @@ table.docutils.citation ...@@ -29,21 +29,21 @@ table.docutils.citation
} }
/* stupid workaround to hide ugly c++ signature stuff from sphinx*/ /* stupid workaround to hide ugly c++ signature stuff from sphinx*/
dl.method dl.last { /* dl.function dl.docutils dl.last { */
visibility: collapse; /* visibility: collapse; */
height: 0px; /* height: 0px; */
width: 0px; /* width: 0px; */
} /* } */
dl.method dl.docutils dd { /* dl.function dl.docutils dd { */
margin-left: 0px; /* margin-left: 0px; */
margin-bottom: -10px; /* margin-bottom: -10px; */
} /* } */
dl.method dl.docutils dt { /* dl.function dl.docutils dt { */
visibility: collapse; /* visibility: collapse; */
line-height: 0; /* line-height: 0; */
} /* } */
div.align-center { div.align-center {
text-align: center; text-align: center;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment