Commit 893d8154 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2399 from webknjaz/maintenance/towncrier-categories

📝 Enable showing news categories in towncrier log
parents 0ce07159 a278b0f0
Extended towncrier news template to include change note categories.
This allows to see what types of changes a given version introduces
-- by :user:`webknjaz`
......@@ -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