summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.py b/build.py
index de4f264..da5e5b0 100755
--- a/build.py
+++ b/build.py
@@ -118,7 +118,8 @@ with open('target/index.html', 'w') as f:
after_beta = False
for version, data in versions.items():
- f.write('<h2 id={0}>{0}'.format(version))
+ f.write('<div id={0} class=release>'.format(version))
+ f.write('<h2>{}'.format(version))
channel = data.get('channel')
if after_beta:
channel = 'stable'
@@ -130,6 +131,11 @@ with open('target/index.html', 'w') as f:
after_beta = True
f.write(' [{}]'.format(channel))
f.write('</h2>')
+
+ if 'blog_post_path' in data:
+ f.write('<a class=release-notes href="https://blog.rust-lang.org/{}">{}</a>'.format(data['blog_post_path'], 'release notes'))
+ f.write('</div>')
+
if 'features' in data:
write_features(f, version, data['features'])