From 273fe4b6af8435b495a4468ff791dfaeef4b2d7e Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Wed, 20 Apr 2022 17:04:44 +0200 Subject: 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 (From yocto-docs rev: 4755961bbb5f674a7532b91cca20ea44a1e22ae7) Signed-off-by: Quentin Schulz Signed-off-by: Richard Purdie --- documentation/sphinx-static/switchers.js.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'documentation') 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 $.each(switcher_versions, function(version, vers_data) { var series = version.substr(0, 3); if (series == current_series) { - if (version != release) { + if (version != release && release.endsWith('.999') == false) { $('#outdated-warning').html('This document is for outdated version ' + release + ', you should select the latest release version in this series, ' + version + '.'); $('#outdated-warning').css('padding', '.5em'); return false; -- cgit v1.2.3-54-g00ecf