summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-27 09:59:13 +0100
committerMartin Fischer <martin@push-f.com>2021-11-27 12:53:41 +0100
commite48c98c767f83554c75457c54ab7942dcc0d316b (patch)
tree16801f1116f33f906eef15b9729c6f3d3b0c12ca
parent5a378e3c4cead462fa7a419524b6fe215241284f (diff)
data: sort versions in data.json
-rwxr-xr-xbuild.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.py b/build.py
index fb2b96d..9e541b9 100755
--- a/build.py
+++ b/build.py
@@ -27,6 +27,8 @@ for version, data in versions.items():
except FileNotFoundError:
pass
+versions = dict(reversed(list(versions.items())))
+
unstable_features = get_features('unstable')
@@ -115,7 +117,7 @@ with open('target/index.html', 'w') as f:
f.write('<h2 id=unstable>Unstable features</h2>')
write_features(f, unstable_features)
- for version, data in reversed(list(versions.items())):
+ for version, data in versions.items():
f.write('<h2 id={0}>{0}</h2>'.format(version))
if 'features' in data:
write_features(f, data['features'])