mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
eb21156959
commit
c15f21db7f
|
@ -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 '/'
|
||||
|
|
Loading…
Reference in New Issue
Block a user