diff --git a/changelog/_template.rst.jinja b/changelog/_template.rst.jinja index 09b245d33a..59573c36ed 100644 --- a/changelog/_template.rst.jinja +++ b/changelog/_template.rst.jinja @@ -1,7 +1,7 @@ .. _vp{{ versiondata.version.replace(".", "p") }}: -{{ top_line }} -{{ top_underline * top_line|length }} +{{ "v" + versiondata.version }} +{{ top_underline * ((versiondata.version)|length + 1) }} {% for section, _ in sections.items() %} {% set underline = underlines[0] %} diff --git a/docs/conf.py b/docs/conf.py index 1bae6b9d8a..bb2be7b3f8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -44,7 +44,7 @@ "sphinx.ext.napoleon", "sphinx.ext.linkcode", "sphinxcontrib_trio", - "sphinxcontrib.towncrier", + "sphinxcontrib.towncrier.ext", "hoverxref.extension", "exception_hierarchy", "attributetable", diff --git a/pyproject.toml b/pyproject.toml index d42673a7c1..93b23c7bab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ template = "changelog/_template.rst.jinja" package = "disnake" filename = "docs/whats_new.rst" directory = "changelog/" -title_format = "v{version}" +title_format = false underlines = "-~" issue_format = ":issue:`{issue}`" diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index 49c911cf92..3d67f42461 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -3,5 +3,5 @@ sphinx~=5.1.1 sphinxcontrib-trio~=1.1.2 sphinx-hoverxref==1.1.3 sphinx-autobuild~=2021.3 -sphinxcontrib-towncrier==0.2.1a0 -towncrier==21.9.0 +sphinxcontrib-towncrier==0.3.0a0 +towncrier==22.8.0 diff --git a/requirements/requirements_tools.txt b/requirements/requirements_tools.txt index 347d1a1390..8aafc9b5d5 100644 --- a/requirements/requirements_tools.txt +++ b/requirements/requirements_tools.txt @@ -2,7 +2,7 @@ pre-commit~=2.19.0 taskipy~=1.10.1 # changelog -towncrier==21.9.0 +towncrier==22.8.0 # checks MANIFEST.in + sdist check-manifest==0.48