docs: only list the latest build of a given stable tag for each wrapdb entry

If we increment the build revision and re-release a wrap, it's a bugfix
of an old version, so we can simply not bother to list it in the table.
Just list the latest and greatest wrap for each tagged release.

The rest are obviously still available if you look up the relevant tag
manually on github, but they aren't very interesting to show here.
pull/10501/head
Eli Schwartz 2 years ago
parent ebfbaef7ee
commit 7229443738
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 8
      tools/regenerate_docs.py

@ -141,7 +141,13 @@ def generate_wrapdb_table(output_dir: Path) -> None:
f.write('| Project | Versions | Provided dependencies | Provided programs |\n')
f.write('| ------- | -------- | --------------------- | ----------------- |\n')
for name, info in releases.items():
versions = [f'[{v}](https://wrapdb.mesonbuild.com/v2/{name}_{v}/{name}.wrap)' for v in info['versions']]
versions = []
added_tags = set()
for v in info['versions']:
tag, build = v.rsplit('-', 1)
if tag not in added_tags:
added_tags.add(tag)
versions.append(f'[{v}](https://wrapdb.mesonbuild.com/v2/{name}_{v}/{name}.wrap)')
# Highlight latest version.
versions_str = f'<big>**{versions[0]}**</big><br/>' + ', '.join(versions[1:])
dependency_names = info.get('dependency_names', [])

Loading…
Cancel
Save