From f7d853366470d1342e962c9d7164683a40dc0d7e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 23 Mar 2022 11:16:47 +0000 Subject: 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(-) (limited to 'documentation/set_versions.py') 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) -- cgit v1.2.3-54-g00ecf