Commit Graph

7 Commits

Author SHA1 Message Date
Pradyun Gedam b3a156892b
Trim unnecessary newlines in news template 2022-01-29 09:10:54 +00:00
Pradyun Gedam 14f8803bf8
Add a missing newline to fix the newfile rendering
towncrier renders with `trim_blocks=True` which trims the newline at the
start of the for loop's body. This adds an additional newline which is
not trimmed, which ensures that the code blocks don't blend into each
other.
2021-10-22 08:16:04 +01:00
Pradyun Gedam aa89947b01
Improve our towncrier template, to do the right thing after releases
This also adds a bunch of comments, which should serve as useful guides
to future humans that work on these files.
2021-10-15 15:11:43 +01:00
Stéphane Bidoul 30faa6478e
Fix duplicate top line in NEWS.rst
It looks like towncrier unconditionally writes top_line
when it is defined in the title_format configuration.
So we must not repeat it in the template.
When running towncrier with --draft, it works differently
so in that case the top line is not shown...
2021-05-23 11:19:37 +02:00
Tzu-ping Chung cf2c2ccf6f
Fix changelog misformat (#9817) 2021-04-18 07:44:38 +08:00
Tzu-ping Chung a79c6267de Render top_line explicitly in towncrier template
This allows sphinxcontrib-towncrier to render it in the documentation.
The rendering of NEWS.rst is unchanged since Towncrier detects
automatically if that line exists and does not render a duplicated
section title.
2021-04-15 07:21:24 +08:00
Pradyun Gedam 147b914782
Get rid of the tools/automation folder
It was an unnecessary level added to the folder hierarchy.
2021-04-01 23:25:09 +01:00