From 89ee37350e807f1e2225773cc80be4ef1078f4df Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 7 Nov 2013 12:43:14 -0800 Subject: [PATCH 1/2] Bump version --- sphinx_rtd_theme/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_rtd_theme/__init__.py b/sphinx_rtd_theme/__init__.py index e1290a87..1440863d 100644 --- a/sphinx_rtd_theme/__init__.py +++ b/sphinx_rtd_theme/__init__.py @@ -5,7 +5,7 @@ From https://github.com/ryan-roemer/sphinx-bootstrap-theme. """ import os -VERSION = (0, 1, 4) +VERSION = (0, 1, 5) __version__ = ".".join(str(v) for v in VERSION) __version_full__ = __version__ From b40420daae7dab635d6818ea874e15c005a6dadd Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 7 Nov 2013 13:57:30 -0800 Subject: [PATCH 2/2] Use local toc for single page docs --- sphinx_rtd_theme/layout.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sphinx_rtd_theme/layout.html b/sphinx_rtd_theme/layout.html index ae616f60..e78f544e 100644 --- a/sphinx_rtd_theme/layout.html +++ b/sphinx_rtd_theme/layout.html @@ -102,7 +102,10 @@
{% set toctree = toctree(maxdepth=2, collapse=False) %} - {% if toctree %} + {% if not next and not prev %} + + {{ toc }} + {% elif toctree %} {{ toctree }} {% else %} {{ toc }}