diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-06-01 09:04:02 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-06-01 21:52:45 -0400 |
commit | 39ba552811b89c1b164ae8ef27c67c6253aa9441 (patch) | |
tree | 7dda2ca93c7a2686571cd8379a2c5280f32f1264 | |
parent | 18e2f8b2b3c7b3cb29e7d7ff037b175411f47f25 (diff) | |
download | meson-39ba552811b89c1b164ae8ef27c67c6253aa9441.zip meson-39ba552811b89c1b164ae8ef27c67c6253aa9441.tar.gz meson-39ba552811b89c1b164ae8ef27c67c6253aa9441.tar.bz2 |
Add "in development" in release notes title
It was already written in the side menu, but better have it in the page
title too.
-rwxr-xr-x | docs/genrelnotes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/genrelnotes.py b/docs/genrelnotes.py index abad3cc..21a097f 100755 --- a/docs/genrelnotes.py +++ b/docs/genrelnotes.py @@ -27,7 +27,7 @@ title: Release {} short-description: Release notes for {} ... -# New features +# New features{} ''' @@ -64,11 +64,12 @@ def generate(relnotes, to_version, source_dir, output_dir): ''' Generate notes for Meson build next release. ''' - release = f'{to_version} (in development)' if output_dir else to_version + title_suffix = ' (in development)' if output_dir else '' + title = f'{to_version}{title_suffix}' output = Path(output_dir, relnotes) if output_dir else Path('markdown', relnotes) output.parent.mkdir(exist_ok=True, parents=True) with output.open('w', encoding='utf-8') as ofile: - ofile.write(RELNOTE_TEMPLATE.format(release, to_version)) + ofile.write(RELNOTE_TEMPLATE.format(title, to_version, title_suffix)) for snippetfile in Path(source_dir, 'markdown/snippets').glob('*.md'): snippet = snippetfile.read_text(encoding='utf-8') ofile.write(snippet) |