Skip to content

Commit 2c167fe

Browse files
committed
add sphinxext-rediraffe for the library->builtins split
1 parent 18436cd commit 2c167fe

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

Doc/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'sphinx_linklint.ext',
4545
'notfound.extension',
4646
'sphinxext.opengraph',
47+
'sphinxext.rediraffe',
4748
'sphinxcontrib.rsvgconverter',
4849
)
4950
for optional_ext in _OPTIONAL_EXTENSIONS:
@@ -258,6 +259,16 @@
258259
'literal-block',
259260
]
260261

262+
rediraffe_redirects = {
263+
# Splitting builtins from library
264+
"library/functions.rst": "builtins/functions.rst",
265+
"library/stdtypes.rst": "builtins/stdtypes.rst",
266+
"library/constants.rst": "builtins/constants.rst",
267+
"library/exceptions.rst": "builtins/exceptions.rst",
268+
"library/threadsafety.rst": "builtins/threadsafety.rst",
269+
"library/time-complexity.rst": "builtins/time-complexity.rst",
270+
}
271+
261272
# Options for HTML output
262273
# -----------------------
263274

Doc/pylock.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ version = "0.13.0"
238238
sdist = { url = "https://files.pythonhosted.org/packages/f6/c0/eb6838e3bae624ce6c8b90b245d17e84252863150e95efdb88f92c8aa3fb/sphinxext_opengraph-0.13.0.tar.gz", upload-time = 2025-08-29T12:20:31Z, size = 1026875, hashes = { sha256 = "103335d08567ad8468faf1425f575e3b698e9621f9323949a6c8b96d9793e80b" } }
239239
wheels = [{ url = "https://files.pythonhosted.org/packages/bf/a4/66c1fd4f8fab88faf71cee04a945f9806ba0fef753f2cfc8be6353f64508/sphinxext_opengraph-0.13.0-py3-none-any.whl", upload-time = 2025-08-29T12:20:29Z, size = 1004152, hashes = { sha256 = "936c07828edc9ad9a7b07908b29596dc84ed0b3ceaa77acdf51282d232d4d80e" } }]
240240

241+
[[packages]]
242+
name = "sphinxext-rediraffe"
243+
version = "0.3.0"
244+
sdist = { url = "https://files.pythonhosted.org/packages/e3/a9/ab13d156049eea633f992424f3e92cb40e3f1b606bb6d01d40a27457d38a/sphinxext_rediraffe-0.3.0.tar.gz", upload-time = 2025-09-28T15:31:53Z, size = 22114, hashes = { sha256 = "f319b3ccb7c3c3b6f63ffa6fd3eeb171b6d272df55075a9e84364394f391f507" } }
245+
wheels = [{ url = "https://files.pythonhosted.org/packages/87/55/ab40a0d1378ee5c859590a633052cf1d0a1f8435af87558a9f7cd576601a/sphinxext_rediraffe-0.3.0-py3-none-any.whl", upload-time = 2025-09-28T15:31:52Z, size = 7194, hashes = { sha256 = "f4220beafa99c99177488276b8e4fcf61fbeeec4253c1e4aae841a18c475330c" } }]
246+
241247
[[packages]]
242248
name = "urllib3"
243249
version = "2.7.0"

Doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ blurb
1616
sphinx-linklint
1717
sphinx-notfound-page~=1.0.0
1818
sphinxext-opengraph~=0.13.0
19+
sphinxext-rediraffe
1920

2021
# The theme used by the documentation is stored separately, so we need
2122
# to install that as well.

0 commit comments

Comments
 (0)