aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-06-15 23:43:03 -0400
committerEli Schwartz <eschwartz@archlinux.org>2022-06-16 13:18:55 -0400
commit7229443738482db2183d048cf8b8b8e6bd11fa6d (patch)
tree3ca900af253be408f391e1c7773c0e00f7c0cf9f
parentebfbaef7ee1276ab960711de1e068e106b450a16 (diff)
downloadmeson-7229443738482db2183d048cf8b8b8e6bd11fa6d.zip
meson-7229443738482db2183d048cf8b8b8e6bd11fa6d.tar.gz
meson-7229443738482db2183d048cf8b8b8e6bd11fa6d.tar.bz2
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.
-rwxr-xr-xtools/regenerate_docs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/regenerate_docs.py b/tools/regenerate_docs.py
index 25e6b53..6e4d8f9 100755
--- a/tools/regenerate_docs.py
+++ b/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', [])