From 34eee7e6e21f0983dafa045a55dd208fc973a430 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 13 Dec 2008 21:02:05 +0000 Subject: docs: fix minor issues, support htmlhelp. - Don't use :members: in automodule; it generates too much and not very useful output - Fix edit links and summarize.py - Add better htmlhelp build target - Add upload target - Fix permissions on make dist --- doc/sphinxext/numpydoc.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/sphinxext/numpydoc.py') diff --git a/doc/sphinxext/numpydoc.py b/doc/sphinxext/numpydoc.py index 2ea41fbb7..21a5ae5ec 100644 --- a/doc/sphinxext/numpydoc.py +++ b/doc/sphinxext/numpydoc.py @@ -33,8 +33,13 @@ def mangle_docstrings(app, what, name, obj, options, lines, if app.config.numpydoc_edit_link and hasattr(obj, '__name__') and \ obj.__name__: - v = dict(full_name=obj.__name__) - lines += [''] + (app.config.numpydoc_edit_link % v).split("\n") + if hasattr(obj, '__module__'): + v = dict(full_name="%s.%s" % (obj.__module__, obj.__name__)) + else: + v = dict(full_name=obj.__name__) + lines += ['', '.. htmlonly::', ''] + lines += [' %s' % x for x in + (app.config.numpydoc_edit_link % v).split("\n")] # replace reference numbers so that there are no duplicates references = [] -- cgit v1.2.1