diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2022-04-20 17:04:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-20 17:25:34 +0100 |
commit | 57b80a8a9a2cac5b8d5df9b18339a0da8987af53 (patch) | |
tree | 9b4928d788f32d70fa5e6185845c24e5881d009f /documentation | |
parent | ee6718fe086cdb50b2acda9eab7a3f030478bed2 (diff) | |
download | poky-57b80a8a9a2cac5b8d5df9b18339a0da8987af53.tar.gz |
docs: sphinx-static: switchers.js.in: do not mark branches as outdated
Branches can never be outdated so let's check the release is not a
branch (branches end with .999).
Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: 4755961bbb5f674a7532b91cca20ea44a1e22ae7)
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/sphinx-static/switchers.js.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in index 1e523a188f..8c016859bc 100644 --- a/documentation/sphinx-static/switchers.js.in +++ b/documentation/sphinx-static/switchers.js.in | |||
@@ -233,7 +233,7 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b | |||
233 | $.each(switcher_versions, function(version, vers_data) { | 233 | $.each(switcher_versions, function(version, vers_data) { |
234 | var series = version.substr(0, 3); | 234 | var series = version.substr(0, 3); |
235 | if (series == current_series) { | 235 | if (series == current_series) { |
236 | if (version != release) { | 236 | if (version != release && release.endsWith('.999') == false) { |
237 | $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.'); | 237 | $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.'); |
238 | $('#outdated-warning').css('padding', '.5em'); | 238 | $('#outdated-warning').css('padding', '.5em'); |
239 | return false; | 239 | return false; |