Add breadcrumbs to the top of pages (#2368)

This commit is contained in:
James Lakin 2022-10-18 19:52:00 +01:00 committed by GitHub
parent fc68e69196
commit af298372b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -186,3 +186,7 @@ div.index-shields {
margin-left: 32px;
}
}
.breadcrumbs li {
display: inline;
}

View File

@ -27,6 +27,17 @@
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
{% endblock %}
{% block relbar_top %}
{% if parents|length > 0 %}
<ul class="breadcrumbs">
{%- for doc in parents %}
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a></li>
{%- endfor %}
<li>{{title}}</li>
</ul>
{% endif %}
{% endblock %}
{% block footer %}
<div id="upgrade-footer">
A new version has been release since you last visited this page: {{ release }} 🎉

View File

@ -1,4 +1,4 @@
Cookbook
Devices
========
.. toctree::