Fix lack of the Yoga version in dropdown list

Since stable/yoga renamed to unmaintained/yoga the version is not
shown in the dropdown list of the available versions on the
https://docs.openstack.org in almost all projects. This change fixes
the issue.

Change-Id: I4f5f1bec04be3152c0f23ac17e450a1fd6fe91d4
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2024-02-11 22:04:40 +03:00
parent ff0be4578e
commit 73ed4991c6
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ def _get_other_versions(app):
refs = repo.get_refs()
for ref in refs.keys():
ref = ref.decode('utf-8')
if ref.startswith('refs/remotes/origin/stable'):
if (ref.startswith('refs/remotes/origin/stable') or
ref.startswith('refs/remotes/origin/unmaintained')):
series = ref.rpartition('/')[-1]
all_series.append(series)
elif ref.startswith('refs/tags/') and ref.endswith('-eol'):