* [PATCH] set_versions: Handle dev branch in switchers correctly
@ 2022-03-23 11:17 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2022-03-23 11:17 UTC (permalink / raw)
To: docs
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(-)
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)
--
2.32.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-23 11:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 11:17 [PATCH] set_versions: Handle dev branch in switchers correctly Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.