summaryrefslogtreecommitdiff
path: root/doc/sphinxext/numpydoc.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2008-12-13 21:02:05 +0000
committerPauli Virtanen <pav@iki.fi>2008-12-13 21:02:05 +0000
commit34eee7e6e21f0983dafa045a55dd208fc973a430 (patch)
tree1a3cfa058ff23c57697eead5c22cd3e86e516ef7 /doc/sphinxext/numpydoc.py
parentf947ff3bf90038bc0b37bc9b6a95138a0cf5e47a (diff)
downloadnumpy-34eee7e6e21f0983dafa045a55dd208fc973a430.tar.gz
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
Diffstat (limited to 'doc/sphinxext/numpydoc.py')
-rw-r--r--doc/sphinxext/numpydoc.py9
1 files changed, 7 insertions, 2 deletions
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 = []