From 33ae55c3cdfe78de2e5c9e53c95eb35cc6f3e068 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Thu, 17 Oct 2019 03:50:23 +0300
Subject: Documentation: Generate local TOC on demand

All pages are generated with a local TOC, which is pointless on simple
pages such as the front page, or other pages containing little content.
Use the .. contents:: :local: directive instead to generate the local
TOC on demand, and remove the automatic local TOC generation. Only the
Docs page uses a local TOC.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 Documentation/theme/layout.html | 5 -----
 1 file changed, 5 deletions(-)

(limited to 'Documentation/theme/layout.html')

diff --git a/Documentation/theme/layout.html b/Documentation/theme/layout.html
index a5cc2776..139c39c7 100644
--- a/Documentation/theme/layout.html
+++ b/Documentation/theme/layout.html
@@ -100,11 +100,6 @@
   </header>
 
   <div id="content">
-    <div class="local-toc">
-      <div class="toc-title">Contents</div>
-      {{ toc }}
-    </div>
-
     {# PAGE CONTENT #}
     <div class="block">
       {% block body %}{% endblock %}
-- 
cgit v1.2.1