This is a backport of PR #12493 as merged into main (20dd1d6738d0623fe3176e796805bbd6e36cf831).
The earlier implementation was generating a temporary file, when the docs site was being built with tox. However, this was not enabled in RTD and is hackish.
This patch integrates the sphinxcontrib-towncrier extension to make it work in any environment where Sphinx docs are being built.
This is a backport of PR #12493 as merged into main (20dd1d6738d0623fe3176e796805bbd6e36cf831).
The earlier implementation was generating a temporary file, when the docs site was being built with
tox
. However, this was not enabled in RTD and is hackish. This patch integrates thesphinxcontrib-towncrier
extension to make it work in any environment where Sphinx docs are being built.📝 Preview/demo: https://pytest--12493.org.readthedocs.build/en/12493/changelog.html#to-be-included-in-vrelease-if-present