1
0
mirror of https://github.com/django/django.git synced 2025-03-03 13:34:26 +00:00

[5.1.x] Fixed docs build on Sphinx 8.2+.

Backport of 2684a383bc67149ceea93cb1b99c8492b4614dcd from main.
This commit is contained in:
Mariusz Felisiak 2025-02-19 08:35:31 +01:00 committed by Sarah Boyce
parent 8c8e2a81b7
commit e479ccb064

View File

@ -9,7 +9,6 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import functools
import sys
from os.path import abspath, dirname, join
@ -442,8 +441,11 @@ epub_cover = ("", "epub-cover.html")
# If false, no index is generated.
# epub_use_index = True
linkcode_resolve = functools.partial(
github_links.github_linkcode_resolve,
version=version,
next_version=django_next_version,
)
def version_github_linkcode_resolve(domain, info):
return github_links.github_linkcode_resolve(
domain, info, version=version, next_version=django_next_version
)
linkcode_resolve = version_github_linkcode_resolve