From 861e2273049d1c25654a2b4086db614685e7e6da Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 29 Jun 2011 23:00:07 +0200 Subject: DOC: adjust html css, and stub file generation --- doc/source/_static/scipy.css | 5 +++++ doc/source/_templates/autosummary/class.rst | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'doc') 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 %} -- cgit v1.2.1