-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-121970: Make DeprecatedRemoved
a subclass of VersionChange
#121971
Conversation
…ange`` Also allow the ``.. versionremoved::`` directive to be used whilst we still support older versions of Sphinx.
# Conflicts: # Doc/tools/extensions/pyspecific.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I trust you that this uses the correct Sphinx APIs :)
I checked that it generates the same output (except timestamps and search index data), at least on my Sphinx v7.2.6
Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…ange`` (pythonGH-121971) (cherry picked from commit 898e90c) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…ange`` (pythonGH-121971) (cherry picked from commit 898e90c) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
GH-122019 is a backport of this pull request to the 3.13 branch. |
GH-122020 is a backport of this pull request to the 3.12 branch. |
The majority of the code was duplicated. A future improvement would be to add some sort of method to
VersionChange
for determining the version and labels that we could override in this subclass, rather than the somewhat convoluted method here.Also allow the
.. versionremoved::
directive to be used whilst we still support older versions of Sphinx.A
pyspecific
#121970📚 Documentation preview 📚: https://cpython-previews--121971.org.readthedocs.build/