Skip to content

Commit

Permalink
docs: only list the latest build of a given stable tag for each wrapd…
Browse files Browse the repository at this point in the history
…b 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.
  • Loading branch information
eli-schwartz committed Jun 16, 2022
1 parent ebfbaef commit 7229443
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/regenerate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', [])
Expand Down

0 comments on commit 7229443

Please sign in to comment.