Remove custom changelog template in favor of title_format
With https://github.com/twisted/towncrier/issues/648 now fixed, we can just rely on a correctly-set title_format again for properly formatted markdown changelogs.
This commit is contained in:
parent
9c24f0f6a5
commit
e173c32171
@ -1,50 +0,0 @@
|
|||||||
{% if render_title %}
|
|
||||||
## v{{ versiondata.version }} ({{ versiondata.date }})
|
|
||||||
{% endif %}
|
|
||||||
{% for section, _ in sections.items() %}
|
|
||||||
{% if section %}
|
|
||||||
|
|
||||||
## {{section}}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if sections[section] %}
|
|
||||||
{% for category, val in definitions.items() if category in sections[section] %}
|
|
||||||
### {{ definitions[category]['name'] }}
|
|
||||||
|
|
||||||
{% for text, values in sections[section][category].items() %}
|
|
||||||
- {{ text }}
|
|
||||||
{%- if values %}
|
|
||||||
{% if "\n - " in text or '\n * ' in text %}
|
|
||||||
|
|
||||||
|
|
||||||
(
|
|
||||||
{%- else %}
|
|
||||||
{% if text %} ({% endif %}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- for issue in values %}
|
|
||||||
{{ issue.split(": ", 1)[0] }}{% if not loop.last %}, {% endif %}
|
|
||||||
{%- endfor %}
|
|
||||||
{% if text %}){% endif %}
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% if issues_by_category[section][category] and "]: " in issues_by_category[section][category][0] %}
|
|
||||||
{% for issue in issues_by_category[section][category] %}
|
|
||||||
{{ issue }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% if sections[section][category]|length == 0 %}
|
|
||||||
No significant changes.
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
No significant changes.
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endfor +%}
|
|
@ -1,11 +1,10 @@
|
|||||||
[tool.towncrier]
|
[tool.towncrier]
|
||||||
name = "obsidian-export"
|
name = "obsidian-export"
|
||||||
directory = "changelog.d"
|
directory = "changelog.d"
|
||||||
template = "changelog.d/template.md"
|
|
||||||
filename = "CHANGELOG.md"
|
filename = "CHANGELOG.md"
|
||||||
start_string = "<!-- towncrier release notes start -->\n"
|
start_string = "<!-- towncrier release notes start -->\n"
|
||||||
underlines = ["", "", ""]
|
underlines = ["", "", ""]
|
||||||
title_format = ""
|
title_format = "## [{version}](https://github.com/zoni/obsidian-export/tree/{version}) - {project_date}"
|
||||||
issue_format = "[#{issue}](https://github.com/zoni/obsidian-export/issues/{issue})"
|
issue_format = "[#{issue}](https://github.com/zoni/obsidian-export/issues/{issue})"
|
||||||
|
|
||||||
[[tool.towncrier.type]]
|
[[tool.towncrier.type]]
|
||||||
|
Loading…
Reference in New Issue
Block a user