diff options
author | Pauli Virtanen <pav@iki.fi> | 2008-12-13 21:02:05 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2008-12-13 21:02:05 +0000 |
commit | 34eee7e6e21f0983dafa045a55dd208fc973a430 (patch) | |
tree | 1a3cfa058ff23c57697eead5c22cd3e86e516ef7 /doc/sphinxext | |
parent | f947ff3bf90038bc0b37bc9b6a95138a0cf5e47a (diff) | |
download | numpy-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')
-rw-r--r-- | doc/sphinxext/numpydoc.py | 9 |
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 = [] |