summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-04-20 17:04:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-25 15:22:12 +0100
commit273fe4b6af8435b495a4468ff791dfaeef4b2d7e (patch)
tree902d53ba74eb23dca4f5b8d06fa240de84a34472 /documentation
parent3947a5f18b8d68c7946a9365d36cb760d0d51514 (diff)
downloadpoky-273fe4b6af8435b495a4468ff791dfaeef4b2d7e.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.in2
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;