[IMP] doc: define a layout for 'category index' pages

These pages were indexed by google but did not have any layout defined.
This commit is contained in:
Stefano Rigano
2016-08-11 16:26:49 +02:00
committed by Martin Trigaux
parent 8b9f1600d0
commit d1663f06e7
3 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -230,7 +230,7 @@
<main class="container-fluid {{ ' '.join(classes) }}"> <main class="container-fluid {{ ' '.join(classes) }}">
{% if pagename != master_doc %} {% if pagename != master_doc %}
<div class="row"> <div class="row">
{% if 'has-toc' not in meta %} {% if 'has-toc' not in meta and not (pagename in toc) %}
<aside> <aside>
<div class="navbar-aside text-center"> <div class="navbar-aside text-center">
{{ toc }} {{ toc }}
@@ -242,7 +242,7 @@
</div> </div>
</aside> </aside>
{% endif %} {% 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 %} {% endif %}
{% block body %} {% endblock %} {% block body %} {% endblock %}
{% if pagename != master_doc %}</article> {% if pagename != master_doc %}</article>
+7
View File
@@ -12353,6 +12353,13 @@ article.doc-body section.doc-content:first-of-type > p:first-child {
font-size: 22.5px; 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 { .content-switcher {
margin-top: 1.5em; margin-top: 1.5em;
} }
+9
View File
@@ -742,6 +742,15 @@ article.doc-body {
.lead; .lead;
} }
} }
&.index-category {
min-height: 300px;
min-height: 30vh;
li.toctree-l1 {
padding: 5px 0;
}
}
} }
.content-switcher { .content-switcher {