From c9d1536777755bdd870cc0a9da2bf9dff87eed41 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 23 Mar 2022 11:16:47 +0000 Subject: [PATCH] set_versions: Handle dev branch in switchers correctly The dev branch is being displayed in switchers under two different headings, 4.0.999 and dev (4.0). Add an additional conditional to fix that. (From yocto-docs rev: 569815ac290f53a17330e53fb46c4870d8d247d2) Signed-off-by: Richard Purdie --- documentation/set_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/set_versions.py b/documentation/set_versions.py index 9f0d794292..7a5f336115 100755 --- a/documentation/set_versions.py +++ b/documentation/set_versions.py @@ -220,7 +220,7 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch version = version + "." + versions[-1] versions.append(version) w.write(" '%s': '%s',\n" % (version, version)) - if ourversion not in versions: + if ourversion not in versions and ourbranch != devbranch: w.write(" '%s': '%s',\n" % (ourversion, ourversion)) else: w.write(line)