From d883fb66b04b58bf446fa2b493644d0f453829cb Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Mon, 13 Oct 2014 14:10:29 +1000 Subject: [PATCH] Hide the empty sidebad TOC on the search page This uses @dnephin's changes to the base.html (thank you!) and then adds the hide_toc: page meta Docker-DCO-1.1-Signed-off-by: Sven Dowideit (github: SvenDowideit) --- docs/sources/jsearch.md | 5 +++++ docs/theme/mkdocs/base.html | 22 +++++----------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/docs/sources/jsearch.md b/docs/sources/jsearch.md index 0e2def2f70..d9a4b996b4 100644 --- a/docs/sources/jsearch.md +++ b/docs/sources/jsearch.md @@ -1,3 +1,7 @@ +page_title: Search the Docker documentation +page_keywords: Docker, search documentation +no_toc: true + # Search
+Sorry, page not found.
diff --git a/docs/theme/mkdocs/base.html b/docs/theme/mkdocs/base.html index a4a10a927d..14a730db10 100644 --- a/docs/theme/mkdocs/base.html +++ b/docs/theme/mkdocs/base.html @@ -49,6 +49,7 @@ {% include "nav.html" %}
+{% if not meta.no_toc %}
+{% else %} +
+{% endif %} {% include "beta_warning.html" %}
-{# -
-
-
-
- {% include "toc.html" %} -
-
- {% include "breadcrumbs.html" %} -
- {% include "version.html" %} - {{ content }} -
-
-
-
-
+{# need to find an unobtrusive way to add this back {% include "prev_next.html" %} #}