Commit 26736e83 authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

📝 Enable showing news categories in towncrier log

Fixes #2394
parent 1ea521c5
......@@ -15,7 +15,7 @@ backend-path = ["."]
title_format = "v{version}"
issue_format = "#{issue}"
template = "towncrier_template.rst"
underlines = ["-"]
underlines = ["-", "^"]
[[tool.towncrier.type]]
directory = "deprecation"
......
{% for section, _ in sections.items() %}
{% set underline = underlines[0] %}{% if section %}{{section}}
{{ underline * section|length }}
{% set underline = underlines[1] %}
{% endif %}
{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
{{ definitions[category]['name'] }}
{{ underline * definitions[category]['name']|length }}
{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
* {{ values|join(', ') }}: {{ text }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment