π Integrate sphinxcontrib-towncrier
#9569
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This plugin embeds displaying a changelog draft right into the Sphinx ecosystem, removing the need to separately run the
towncrier --draft
command externally.It works with native Sphinx build runs universally, meaning that the result is the same and embedded for local runs, and is not only set up on RTD in a disconnected manner.
DISCLAIMER: I authored this Sphinx extension.
skip-news
if the change does not need to be in the changelog.towncrier create <IssueNumber>.<type>
which will beincluded in the changelog.
<type>
can be one of the types defined in./towncrier.toml
.If necessary you can write details or offer examples on how the new change is supposed to work.
tox -e docs
Don't hesitate to open multiple PRs if the change requires it. If your review is so
big it requires to actually plan and allocate time to review, it's more likely
that it's going to go stale.
and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
I just saw the changelog draft hack and figured I'd try plugging in my thing. Evidently, the docs structure is a bit different compared to what I'm used to so I'm just experimenting with the integration for now and want to preview how it goes.
I wasn't sure about a change note. I can write it later if needed. Recently I started using more granular Towncrier fragments in my projects, introducing sections targeting the contributors and downstreams (e.g. https://docs.aiohttp.org/en/stable/changes.html#contributor-facing-changes). I'd use one of those if they existed, but since they don't, perhaps an
internal
note would fit. Let me know!With the above in mind, I'm opening this PR in the draft status and may change it to review-ready later.