summaryrefslogtreecommitdiffstats
path: root/documentation/sphinx-static
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-04-19 19:07:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-20 13:14:00 +0100
commita041cb4ea5969821c941955c88a4cf51b94687e7 (patch)
tree7b74057ce5dfe6800141f74a7cf2a833399d8db2 /documentation/sphinx-static
parent9c4de1482f155fdc291b3e199cdcc0e7590b8f53 (diff)
downloadpoky-a041cb4ea5969821c941955c88a4cf51b94687e7.tar.gz
docs: update Bitbake objects.inv location for master branch
master branch of Bitbake is now located at docs.yoctoproject.org/dev instead of docs.yoctoproject.org so let's update the switchers and set_versions.py to reflect that change. Cc: Quentin Schulz <foss+yocto@0leil.net> (From yocto-docs rev: 18338292d99ed236e2bac6e73a5152ef11c4a9e5) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/sphinx-static')
-rw-r--r--documentation/sphinx-static/switchers.js.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index 408e23a71c..4966b3033d 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -149,11 +149,9 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
149 var docroot = get_docroot_url() 149 var docroot = get_docroot_url()
150 150
151 var new_versionpath = selected_version + '/'; 151 var new_versionpath = selected_version + '/';
152 if (selected_version == "dev")
153 new_versionpath = '';
154 152
155 // dev versions have no version prefix 153 // latest tag is also the default page (without version information)
156 if (current_version == "dev") { 154 if (docroot.endsWith(current_version + '/') == false) {
157 var new_url = docroot + new_versionpath + url.replace(docroot, ""); 155 var new_url = docroot + new_versionpath + url.replace(docroot, "");
158 var fallback_url = docroot + new_versionpath; 156 var fallback_url = docroot + new_versionpath;
159 } else { 157 } else {