aboutsummaryrefslogtreecommitdiffstats
path: root/doc/_templates
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-08 16:29:59 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-16 18:13:44 +0100
commitcb19159cf8972713a2063387849804c5cea72d24 (patch)
tree5e2b95b1f9bbdc5bddfb0c4f29d4137441a6aa62 /doc/_templates
parent10a54678bf7a119e91df8160b0f43384181d636d (diff)
downloadbitbake-cb19159cf8972713a2063387849804c5cea72d24.tar.gz
sphinx: Enhance the sphinx experience/nagivation with:
* Remove the pointless looking parts of breadcrumb navigtation * Add a document type switcher to the breadcrumb navigation * Add a version selection switch to the breadcrumb navigation Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/breadcrumbs.html14
-rw-r--r--doc/_templates/layout.html7
2 files changed, 21 insertions, 0 deletions
diff --git a/doc/_templates/breadcrumbs.html b/doc/_templates/breadcrumbs.html
new file mode 100644
index 000000000..eb6244b74
--- /dev/null
+++ b/doc/_templates/breadcrumbs.html
@@ -0,0 +1,14 @@
+{% extends "!breadcrumbs.html" %}
+
+{% block breadcrumbs %}
+ <li>
+ <span class="doctype_switcher_placeholder">{{ doctype or 'single' }}</span>
+ <span class="version_switcher_placeholder">{{ release }}</span>
+ </li>
+ <li> &raquo;</li>
+ {% for doc in parents %}
+ <li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &raquo;</li>
+ {% endfor %}
+ <li>{{ title }}</li>
+{% endblock %}
+
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
new file mode 100644
index 000000000..308d5c7a2
--- /dev/null
+++ b/doc/_templates/layout.html
@@ -0,0 +1,7 @@
+{% extends "!layout.html" %}
+
+{% block extrabody %}
+<div id="outdated-warning" style="text-align: center; background-color: #FFBABA; color: #6A0E0E;">
+</div>
+{% endblock %}
+