1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <SvenDowideit@docker.com> (github: SvenDowideit)
This commit is contained in:
Sven Dowideit 2014-10-13 14:10:29 +10:00
parent 7fa7c42ce2
commit d883fb66b0
2 changed files with 10 additions and 17 deletions

View file

@ -1,3 +1,7 @@
page_title: Search the Docker documentation
page_keywords: Docker, search documentation
no_toc: true
# Search
<form id="content_search" action="/jsearch/">
@ -6,4 +10,5 @@
</form>
<div id="tipue_search_content">
Sorry, page not found.
</div>

View file

@ -49,6 +49,7 @@
{% include "nav.html" %}
<div id="content" class="container">
<div class="row">
{% if not meta.no_toc %}
<div class="span3" id="leftnav">
<div id="toc_table">
<ul class="nav nav-tabs nav-stacked">
@ -57,6 +58,9 @@
</div>
</div>
<div class="span9 content-body">
{% else %}
<div class="span12 content-body">
{% endif %}
{% include "beta_warning.html" %}
<div id="versionnav" class="span3 pull-right">
<ul class="nav version pull-right">
@ -80,23 +84,7 @@
</div>
{#
<div class="row">
<div class="container container-better">
<div class="row">
<div class="col-sm-4">
{% include "toc.html" %}
</div>
<div class="col-sm-8" role="main">
{% include "breadcrumbs.html" %}
<main id="content" role="main">
{% include "version.html" %}
{{ content }}
</main>
</div>
</div>
</div>
</div>
{# need to find an unobtrusive way to add this back
{% include "prev_next.html" %}
#}