Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
2d799f30
Commit
2d799f30
authored
May 21, 2013
by
Tiago Peixoto
Browse files
Remove C++ signature cruft from documentation
parent
bd375efd
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/conf.py
View file @
2d799f30
...
...
@@ -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
...
...
doc/gt_theme/static/gt_style.css
View file @
2d799f30
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment