Message ID | 20220323111745.1266678-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted |
Commit | 569815ac290f53a17330e53fb46c4870d8d247d2 |
Headers | show |
Series | set_versions: Handle dev branch in switchers correctly | expand |
diff --git a/documentation/set_versions.py b/documentation/set_versions.py index af237f29e..b2859381e 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)
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- documentation/set_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)