summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-04-20 17:04:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-25 15:22:12 +0100
commit8096431d589f74f4145f335becbd21c40d50fb11 (patch)
tree8a82fb006f52ffa0f4eea5c2f504857b0edc778a /documentation
parentea99def6bff9bc4a24df4730eabefc7dc1d62f27 (diff)
downloadpoky-8096431d589f74f4145f335becbd21c40d50fb11.tar.gz
docs: set_versions.py: mark as obsolete only branches and old tags from obsolete releases
Branches are identified by their .999 version suffix which means they will never be matched in the forloop above this git context. Therefore, branches will match the condition. However, branches are not necessarily obsolete (e.g. dunfell, honister and kirkstone today), so let's mark as obsolete the branches which are from obsolete releases. Old tags of currently supported releases are not defined as obsolete but outdated, therefore using the series to which they belong like it is done for branches is enough for obsolescence detection. Cc: Quentin Schulz <foss+yocto@0leil.net> (From yocto-docs rev: 7181a432da18b47608784363d243ea39b80be1ed) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rwxr-xr-xdocumentation/set_versions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 0086e9bea3..fc179ee195 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -218,7 +218,7 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch
218 versions.append(version) 218 versions.append(version)
219 w.write(" '%s': {'title': '%s', 'obsolete': %s,},\n" % (version, version, str(branch not in activereleases).lower())) 219 w.write(" '%s': {'title': '%s', 'obsolete': %s,},\n" % (version, version, str(branch not in activereleases).lower()))
220 if ourversion not in versions and ourseries != devbranch: 220 if ourversion not in versions and ourseries != devbranch:
221 w.write(" '%s': {'title': '%s', 'obsolete': true,},\n" % (ourversion, ourversion)) 221 w.write(" '%s': {'title': '%s', 'obsolete': %s,},\n" % (ourversion, ourversion, str(ourseries not in activereleases).lower()))
222 else: 222 else:
223 w.write(line) 223 w.write(line)
224 224