diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-08 16:29:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-16 18:14:08 +0100 |
commit | caf24e8ddd7105cbb04c026fbb90c19981c62d50 (patch) | |
tree | 061402a498b49e3f798797e0ecc1163a4a217ddc /bitbake/doc/conf.py | |
parent | 390fc75bd6705ee55ec9f35f09bfa715f81024e2 (diff) | |
download | poky-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.py | 10 |
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 | ||
17 | import datetime | 17 | import datetime |
18 | 18 | ||
19 | current_version = "dev" | ||
20 | |||
21 | # String used in sidebar | ||
22 | version = 'Version: ' + current_version | ||
23 | if current_version == 'dev': | ||
24 | version = 'Version: Current Development' | ||
25 | # Version seen in documentation_options.js and hence in js switchers code | ||
26 | release = current_version | ||
27 | |||
19 | # -- Project information ----------------------------------------------------- | 28 | # -- Project information ----------------------------------------------------- |
20 | 29 | ||
21 | project = 'Bitbake' | 30 | project = '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 |
69 | html_css_files = ['theme_overrides.css'] | 78 | html_css_files = ['theme_overrides.css'] |
79 | html_js_files = ['switchers.js'] | ||
70 | 80 | ||
71 | # Hide 'Created using Sphinx' text | 81 | # Hide 'Created using Sphinx' text |
72 | html_show_sphinx = False | 82 | html_show_sphinx = False |