summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-09-11 10:14:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-16 18:13:44 +0100
commit08b1ae2350694e22883e07605a28a10c05f62cda (patch)
tree5faf3b20b83a9cb387414112346475ec6bda6d48
parent99ba6fe98b9c7c4dbe70dce63c478c167c10d91a (diff)
downloadbitbake-08b1ae2350694e22883e07605a28a10c05f62cda.tar.gz
sphinx: remove leading '/'
When switching back and forth between between regular and mega manual an extra '/' keeps being added to the URL. Reported-by: Quentin Schulz <quentin.schulz@streamunlimited.com> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--doc/sphinx-static/switchers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/sphinx-static/switchers.js b/doc/sphinx-static/switchers.js
index c8a94d93b..32113cfa9 100644
--- a/doc/sphinx-static/switchers.js
+++ b/doc/sphinx-static/switchers.js
@@ -180,12 +180,12 @@
var current_version = DOCUMENTATION_OPTIONS.VERSION;
// Assume manuals before 3.2 are using old docbook mega-manual
if (ver_compare(current_version, "3.2") < 0) {
- var new_url = docroot + "/mega-manual/mega-manual.html";
+ var new_url = docroot + "mega-manual/mega-manual.html";
} else {
- var new_url = docroot + "/singleindex.html";
+ var new_url = docroot + "singleindex.html";
}
} else {
- var new_url = url.replace("/singleindex.html", "/index.html")
+ var new_url = url.replace("singleindex.html", "index.html")
}
if (new_url != url) {