summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2024-11-15 15:37:17 +0100
committerSteve Sakoman <steve@sakoman.com>2024-11-15 06:51:25 -0800
commitc15f21db7fc0a67dca49e5fd811abaf087a8921f (patch)
treea2e485f6e4e71b84acdaf4dfc2230663c5f26937
parenteb211569594d01f24d31569209e90edba5c8c212 (diff)
downloadpoky-c15f21db7fc0a67dca49e5fd811abaf087a8921f.tar.gz
Revert "sphinx-static/switchers.js.in: do not refer to URL_ROOT anymore"
This reverts commit 6c16f7481b8b175271072062925959bbaba2ec5f. (From yocto-docs rev: 188d4317fc7c6ebf0e6803e3240e9e3ba2024442) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--documentation/sphinx-static/switchers.js.in6
1 files changed, 0 insertions, 6 deletions
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index b1c0812b53..8c016859bc 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -133,13 +133,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
133 133
134 function get_docroot_url() { 134 function get_docroot_url() {
135 var url = window.location.href; 135 var url = window.location.href;
136 // Try to get the variable from documentation_options.js
137 var root = DOCUMENTATION_OPTIONS.URL_ROOT; 136 var root = DOCUMENTATION_OPTIONS.URL_ROOT;
138 if (root == null) {
139 // In recent versions of Sphinx, URL_ROOT was removed from
140 // documentation_options.js, so get it like searchtools.js does.
141 root = document.documentElement.dataset.content_root;
142 }
143 137
144 var urlarray = url.split('/'); 138 var urlarray = url.split('/');
145 // Trim off anything after '/' 139 // Trim off anything after '/'