From: Luca Boccassi Date: Fri, 30 May 2025 01:02:01 +0000 (+0100) Subject: sync-docs: fix selection menu when opening 'latest' man X-Git-Tag: v256.17~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed8164f916dd29d001a5c725025f515edc67a713;p=thirdparty%2Fsystemd.git sync-docs: fix selection menu when opening 'latest' man 'devel' will always sort first, so the highest version is the second entry, not the first one (cherry picked from commit 1cd995185bcd0ea3612ebaee2c311a5f36b2fa64) (cherry picked from commit 5b7dccd5dd8fc44e86f6e5054450035be2e3b52a) --- diff --git a/tools/sync-docs.py b/tools/sync-docs.py index ab10413c3a9..0a14108bfc0 100755 --- a/tools/sync-docs.py +++ b/tools/sync-docs.py @@ -26,7 +26,7 @@ $(document).ready(function() { $.each( data, function(_, version) { if (version == dirname) { items.push( ""); - } else if (dirname == "latest" && version == data[0]) { + } else if (dirname == "latest" && version == data[1]) { items.push( ""); } else { items.push( "");