diff options
| author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-11 10:14:05 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-16 18:14:08 +0100 |
| commit | c6225653e021db156e5b6aa2ea6859b736908509 (patch) | |
| tree | 7ac57e97d99a7d289a746b21c0ef15b3b554803b /bitbake/doc/sphinx-static | |
| parent | 277e99f7c6a635bcbd8e885c6cad381de91f079c (diff) | |
| download | poky-c6225653e021db156e5b6aa2ea6859b736908509.tar.gz | |
bitbake: 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>
(Bitbake rev: 08b1ae2350694e22883e07605a28a10c05f62cda)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc/sphinx-static')
| -rw-r--r-- | bitbake/doc/sphinx-static/switchers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/doc/sphinx-static/switchers.js b/bitbake/doc/sphinx-static/switchers.js index c8a94d93ba..32113cfa96 100644 --- a/bitbake/doc/sphinx-static/switchers.js +++ b/bitbake/doc/sphinx-static/switchers.js | |||
| @@ -180,12 +180,12 @@ | |||
| 180 | var current_version = DOCUMENTATION_OPTIONS.VERSION; | 180 | var current_version = DOCUMENTATION_OPTIONS.VERSION; |
| 181 | // Assume manuals before 3.2 are using old docbook mega-manual | 181 | // Assume manuals before 3.2 are using old docbook mega-manual |
| 182 | if (ver_compare(current_version, "3.2") < 0) { | 182 | if (ver_compare(current_version, "3.2") < 0) { |
| 183 | var new_url = docroot + "/mega-manual/mega-manual.html"; | 183 | var new_url = docroot + "mega-manual/mega-manual.html"; |
| 184 | } else { | 184 | } else { |
| 185 | var new_url = docroot + "/singleindex.html"; | 185 | var new_url = docroot + "singleindex.html"; |
| 186 | } | 186 | } |
| 187 | } else { | 187 | } else { |
| 188 | var new_url = url.replace("/singleindex.html", "/index.html") | 188 | var new_url = url.replace("singleindex.html", "index.html") |
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | if (new_url != url) { | 191 | if (new_url != url) { |
