summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/_static/scipy.css5
-rw-r--r--doc/source/_templates/autosummary/class.rst12
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 %}