diff --git a/tools/news/template.rst b/tools/news/template.rst index 7ea90573dc2..70d6ab75def 100644 --- a/tools/news/template.rst +++ b/tools/news/template.rst @@ -1,7 +1,9 @@ -{% for section in sections %} +{{ top_line -}} + +{%- for section in sections %} {% set underline = "-" %} {% if section %} -{{section}} +{{ section }} {{ underline * section|length }}{% set underline = "~" %} {% endif %} diff --git a/tools/requirements/docs.txt b/tools/requirements/docs.txt index 199edcfd6b3..1ab19c9b9ab 100644 --- a/tools/requirements/docs.txt +++ b/tools/requirements/docs.txt @@ -1,11 +1,10 @@ sphinx == 3.2.1 -# FIXME: Remove towncrier constraint after upgrading sphinxcontrib-towncrier. -towncrier < 19.9.0 +towncrier furo myst_parser sphinx-copybutton sphinx-inline-tabs -sphinxcontrib-towncrier +sphinxcontrib-towncrier >= 0.2.0a0 # `docs.pipext` uses pip's internals to generate documentation. So, we install # the current directory to make it work.