From d1663f06e71f8e0e296c69ce0efdfc151aa986da Mon Sep 17 00:00:00 2001 From: Stefano Rigano Date: Thu, 11 Aug 2016 11:39:41 +0200 Subject: [PATCH] [IMP] doc: define a layout for 'category index' pages These pages were indexed by google but did not have any layout defined. --- doc/_extensions/odoo/layout.html | 4 ++-- doc/_extensions/odoo/static/style.css | 7 +++++++ doc/_extensions/odoo/static/style.less | 9 +++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/_extensions/odoo/layout.html b/doc/_extensions/odoo/layout.html index a7ed5078040..000019b32cf 100644 --- a/doc/_extensions/odoo/layout.html +++ b/doc/_extensions/odoo/layout.html @@ -230,7 +230,7 @@
{% if pagename != master_doc %}
- {% if 'has-toc' not in meta %} + {% if 'has-toc' not in meta and not (pagename in toc) %} {% endif %} -
+
{% endif %} {% block body %} {% endblock %} {% if pagename != master_doc %}
diff --git a/doc/_extensions/odoo/static/style.css b/doc/_extensions/odoo/static/style.css index 1d48dea23b0..d521ff30677 100644 --- a/doc/_extensions/odoo/static/style.css +++ b/doc/_extensions/odoo/static/style.css @@ -12353,6 +12353,13 @@ article.doc-body section.doc-content:first-of-type > p:first-child { font-size: 22.5px; } } +article.doc-body.index-category { + min-height: 300px; + min-height: 30vh; +} +article.doc-body.index-category li.toctree-l1 { + padding: 5px 0; +} .content-switcher { margin-top: 1.5em; } diff --git a/doc/_extensions/odoo/static/style.less b/doc/_extensions/odoo/static/style.less index 44811836068..5fd9fe17804 100644 --- a/doc/_extensions/odoo/static/style.less +++ b/doc/_extensions/odoo/static/style.less @@ -742,6 +742,15 @@ article.doc-body { .lead; } } + + &.index-category { + min-height: 300px; + min-height: 30vh; + + li.toctree-l1 { + padding: 5px 0; + } + } } .content-switcher {