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
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
......
......@@ -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;
......
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