mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
docs: set_versions.py: add information about obsolescence of a release
This adds support for marking releases as obsolete to make the detection algorithm smarter (in a later commit) than just checking if it's older than dunfell. Cc: Quentin Schulz <foss+yocto@0leil.net> (From yocto-docs rev: 6f40ef56054ecbd3d8b7310d748c1af78a689add) Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7b3a83f736
commit
8643342d80
@@ -207,7 +207,7 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch
|
||||
lines = r.readlines()
|
||||
for line in lines:
|
||||
if "VERSIONS_PLACEHOLDER" in line:
|
||||
w.write(" 'dev': 'dev (%s)',\n" % release_series[devbranch])
|
||||
w.write(" 'dev': { 'title': 'dev (%s)', 'obsolete': false,},\n" % release_series[devbranch])
|
||||
for branch in activereleases:
|
||||
if branch == devbranch:
|
||||
continue
|
||||
@@ -219,9 +219,9 @@ with open("sphinx-static/switchers.js.in", "r") as r, open("sphinx-static/switch
|
||||
if versions[-1] != "0":
|
||||
version = version + "." + versions[-1]
|
||||
versions.append(version)
|
||||
w.write(" '%s': '%s',\n" % (version, version))
|
||||
w.write(" '%s': {'title': '%s', 'obsolete': %s,},\n" % (version, version, str(branch == ourseries).lower()))
|
||||
if ourversion not in versions and ourseries != devbranch:
|
||||
w.write(" '%s': '%s',\n" % (ourversion, ourversion))
|
||||
w.write(" '%s': {'title': '%s', 'obsolete': true,},\n" % (ourversion, ourversion))
|
||||
else:
|
||||
w.write(line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user