cpython/Doc/tools
Petr Viktorin f0895aa9c1
[3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) (#127827)
* [3.11] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)

Make `versionchanged:: next`` expand to current (unreleased) version.

When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 7d24ea9db3)

gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)

(cherry-picked from e349f73a5a)

* Import VersionChange

sphinx.domains.changeset.VersionChange exists at least since Sphinx 2.1,
according to: https://www.sphinx-doc.org/en/master/extdev/deprecated.html

* Get config from env

* Use version, not arguments directly
2024-12-11 14:58:46 +00:00
..
extensions [3.11] gh-121277: Allow .. versionadded:: next in docs (GH-121278) (#124718) (#127827) 2024-12-11 14:58:46 +00:00
static [3.11] gh-115317: Rewrite changelog filter to use vanilla JavaScript (GH-115324) (#115373) 2024-02-13 07:30:54 +02:00
templates [3.11] Change links on the index page (GH-117230) (#117269) 2024-03-26 19:14:43 +00:00
.nitignore [3.11] gh-101100: Fix Sphinx warnings in library/pydoc.rst (GH-116913) (#117038) 2024-03-19 19:55:43 +00:00
rstlint.py [3.11] gh-93675: Fix typos in Doc/ (GH-93676) (GH-94079) 2022-06-21 21:22:27 +02:00
susp-ignored.csv gh-86404: [doc] A make sucpicious false positive. (GH-93710) 2022-06-11 04:06:44 -07:00