From e82ee4f1f71b6ea42a9a5fa8e72cc6a40bceb9c9 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Fri, 8 Nov 2013 11:42:38 -0800 Subject: [PATCH] Turns out Sphinx has lots of single pages we want tocs on --- sphinx_rtd_theme/layout.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index 3fa593bb..c990a561 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -102,13 +102,11 @@
{% set toctree = toctree(maxdepth=2, collapse=False) %} - {% if not next and not prev %} - -
{{ toc }}
- {% elif toctree %} + {% if toctree %} {{ toctree }} {% else %} -
{{ toc }}
+ +
{{ toc }}
{% endif %}