diff options
| author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-09-24 23:09:57 +0200 |
|---|---|---|
| committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-09-24 23:09:57 +0200 |
| commit | 26736e834db76aded9a34a5c0679fedd15fd0881 (patch) | |
| tree | 513f79dd3e90d67e3a3f635521c823d1ddeae81b | |
| parent | 1ea521c51b0ed2967a9ff1d8ad41160043a8a981 (diff) | |
| download | python-setuptools-git-26736e834db76aded9a34a5c0679fedd15fd0881.tar.gz | |
📝 Enable showing news categories in towncrier log
Fixes #2394
| -rw-r--r-- | pyproject.toml | 2 | ||||
| -rw-r--r-- | towncrier_template.rst | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml index cd66e277..2d362865 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ backend-path = ["."] title_format = "v{version}" issue_format = "#{issue}" template = "towncrier_template.rst" - underlines = ["-"] + underlines = ["-", "^"] [[tool.towncrier.type]] directory = "deprecation" diff --git a/towncrier_template.rst b/towncrier_template.rst index fbc5ef03..31098b7c 100644 --- a/towncrier_template.rst +++ b/towncrier_template.rst @@ -1,10 +1,14 @@ {% 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 }} |
