From c15f21db7fc0a67dca49e5fd811abaf087a8921f Mon Sep 17 00:00:00 2001 From: Antonin Godard Date: Fri, 15 Nov 2024 15:37:17 +0100 Subject: 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 Signed-off-by: Steve Sakoman --- documentation/sphinx-static/switchers.js.in | 6 ------ 1 file changed, 6 deletions(-) (limited to 'documentation/sphinx-static/switchers.js.in') 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 function get_docroot_url() { var url = window.location.href; - // Try to get the variable from documentation_options.js var root = DOCUMENTATION_OPTIONS.URL_ROOT; - if (root == null) { - // In recent versions of Sphinx, URL_ROOT was removed from - // documentation_options.js, so get it like searchtools.js does. - root = document.documentElement.dataset.content_root; - } var urlarray = url.split('/'); // Trim off anything after '/' -- cgit v1.2.3-54-g00ecf