summaryrefslogtreecommitdiff
path: root/doc/_extensions
diff options
context:
space:
mode:
authorStefano Rigano <sri@odoo.com>2016-08-11 11:39:41 +0200
committerMartin Trigaux <mat@odoo.com>2016-08-11 16:26:49 +0200
commitd1663f06e71f8e0e296c69ce0efdfc151aa986da (patch)
treeec9c2d42f23a7d2ac5fbf84a817715e1e1f52b6d /doc/_extensions
parent8b9f1600d0850163306eb803cd5fb558fd98dcf9 (diff)
[IMP] doc: define a layout for 'category index' pages
These pages were indexed by google but did not have any layout defined.
Diffstat (limited to 'doc/_extensions')
-rw-r--r--doc/_extensions/odoo/layout.html4
-rw-r--r--doc/_extensions/odoo/static/style.css7
-rw-r--r--doc/_extensions/odoo/static/style.less9
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 @@
<main class="container-fluid {{ ' '.join(classes) }}">
{% if pagename != master_doc %}
<div class="row">
- {% if 'has-toc' not in meta %}
+ {% if 'has-toc' not in meta and not (pagename in toc) %}
<aside>
<div class="navbar-aside text-center">
{{ toc }}
@@ -242,7 +242,7 @@
</div>
</aside>
{% endif %}
- <article class="doc-body {% if 'has-toc' in meta %}doc-toc{% endif %}">
+ <article class="doc-body {% if 'has-toc' in meta %}doc-toc{% endif %}{% if pagename in toc%}index-category{% endif %}">
{% endif %}
{% block body %} {% endblock %}
{% if pagename != master_doc %}</article>
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 {