Commit d1d92728 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Enable linkcode sphinx extension in documentation

parent cd28dbb3
......@@ -28,6 +28,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'mathjax', 'sphinx.ext.autosummary',
'sphinxext.numpydoc',
'sphinx.ext.extlinks',
'sphinx.ext.linkcode'
#'matplotlib.sphinxext.plot_directive'
]
......@@ -226,3 +227,12 @@ autodoc_default_flags = ['members', 'undoc-members']
numpydoc_show_class_members = False
autodoc_docstring_signature = False
autodoc_member_order = 'bysource'
autoclass_content = 'both'
def linkcode_resolve(domain, info):
if domain != 'py':
return None
if not info['module']:
return None
modname = info['module'].replace('.', '/')
return "https://git.skewed.de/count0/graph-tool/tree/master/src/%s/__init__.py" % modname
......@@ -27,8 +27,10 @@
.. autofunction:: cairo_draw
.. autofunction:: interactive_window
.. autoclass:: GraphWidget
:show-inheritance:
:members:
:undoc-members:
.. autoclass:: GraphWindow
:show-inheritance:
:members:
:undoc-members:
......@@ -143,3 +143,6 @@ pre {
margin-right: 0px;
}
.viewcode-link {
font-size: .75em;
}
\ No newline at end of file
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