diff options
author | Pauli Virtanen <pav@iki.fi> | 2011-06-29 23:00:07 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2011-06-29 23:00:50 +0200 |
commit | 861e2273049d1c25654a2b4086db614685e7e6da (patch) | |
tree | 7092cd6a89ce409fdc273027db4c9ed1863bcb61 /doc | |
parent | 192ac749108c91a3f9537eda3977919a2ce4d2b0 (diff) | |
download | numpy-861e2273049d1c25654a2b4086db614685e7e6da.tar.gz |
DOC: adjust html css, and stub file generation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/_static/scipy.css | 5 | ||||
-rw-r--r-- | doc/source/_templates/autosummary/class.rst | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/source/_static/scipy.css b/doc/source/_static/scipy.css index 44ac1a60f..03e6763a6 100644 --- a/doc/source/_static/scipy.css +++ b/doc/source/_static/scipy.css @@ -33,6 +33,11 @@ dl.last > dd { margin-left: 30px; } +/* hide overflowing content in the sidebar */ +div.sphinxsidebarwrapper p.topless { + overflow: hidden; +} + /** * Hide dummy toctrees */ diff --git a/doc/source/_templates/autosummary/class.rst b/doc/source/_templates/autosummary/class.rst index 0cabe7cd1..64c1b11e9 100644 --- a/doc/source/_templates/autosummary/class.rst +++ b/doc/source/_templates/autosummary/class.rst @@ -2,22 +2,26 @@ {% block methods %} {% if methods %} - .. HACK + .. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. .. autosummary:: :toctree: - {% for item in methods %} + {% for item in all_methods %} + {%- if not item.startswith('_') or item in ['__call__'] %} {{ name }}.{{ item }} + {%- endif -%} {%- endfor %} {% endif %} {% endblock %} {% block attributes %} {% if attributes %} - .. HACK + .. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages. .. autosummary:: :toctree: - {% for item in attributes %} + {% for item in all_attributes %} + {%- if not item.startswith('_') %} {{ name }}.{{ item }} + {%- endif -%} {%- endfor %} {% endif %} {% endblock %} |