From d8c44b3157610df0d2989e1530ac1e997854f717 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 27 Nov 2021 10:15:30 +0100 Subject: html: show channels --- build.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'build.py') diff --git a/build.py b/build.py index d3dad17..5b18861 100755 --- a/build.py +++ b/build.py @@ -111,8 +111,21 @@ with open('target/index.html', 'w') as f: f.write('

Unstable features

') write_features(f, unstable_features) + after_beta = False + for version, data in versions.items(): - f.write('

{0}

'.format(version)) + f.write('

{0}'.format(version)) + channel = data.get('channel') + if after_beta: + channel = 'stable' + after_beta = False + if channel: + if channel == 'nightly': + channel = 'stabilized' + elif channel == 'beta': + after_beta = True + f.write(' [{}]'.format(channel)) + f.write('

') if 'features' in data: write_features(f, data['features']) -- cgit v1.2.3