summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/conf.py
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:14:08 +0100
commitcaf24e8ddd7105cbb04c026fbb90c19981c62d50 (patch)
tree061402a498b49e3f798797e0ecc1163a4a217ddc /bitbake/doc/conf.py
parent390fc75bd6705ee55ec9f35f09bfa715f81024e2 (diff)
downloadpoky-caf24e8ddd7105cbb04c026fbb90c19981c62d50.tar.gz
bitbake: 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 (Bitbake rev: cb19159cf8972713a2063387849804c5cea72d24) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc/conf.py')
-rw-r--r--bitbake/doc/conf.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/doc/conf.py b/bitbake/doc/conf.py
index 4ff90e8dbf..722c79230b 100644
--- a/bitbake/doc/conf.py
+++ b/bitbake/doc/conf.py
@@ -16,6 +16,15 @@
16 16
17import datetime 17import datetime
18 18
19current_version = "dev"
20
21# String used in sidebar
22version = 'Version: ' + current_version
23if current_version == 'dev':
24 version = 'Version: Current Development'
25# Version seen in documentation_options.js and hence in js switchers code
26release = current_version
27
19# -- Project information ----------------------------------------------------- 28# -- Project information -----------------------------------------------------
20 29
21project = 'Bitbake' 30project = 'Bitbake'
@@ -67,6 +76,7 @@ html_static_path = ['sphinx-static']
67 76
68# Add customm CSS and JS files 77# Add customm CSS and JS files
69html_css_files = ['theme_overrides.css'] 78html_css_files = ['theme_overrides.css']
79html_js_files = ['switchers.js']
70 80
71# Hide 'Created using Sphinx' text 81# Hide 'Created using Sphinx' text
72html_show_sphinx = False 82html_show_sphinx = False