Skip to content

Commit e479ccb

Browse files
felixxmsarahboyce
authored andcommitted
[5.1.x] Fixed docs build on Sphinx 8.2+.
Backport of 2684a38 from main.
1 parent 8c8e2a8 commit e479ccb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/conf.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# All configuration values have a default; values that are commented out
1010
# serve to show the default.
1111

12-
import functools
1312
import sys
1413
from os.path import abspath, dirname, join
1514

@@ -442,8 +441,11 @@ def django_release():
442441
# If false, no index is generated.
443442
# epub_use_index = True
444443

445-
linkcode_resolve = functools.partial(
446-
github_links.github_linkcode_resolve,
447-
version=version,
448-
next_version=django_next_version,
449-
)
444+
445+
def version_github_linkcode_resolve(domain, info):
446+
return github_links.github_linkcode_resolve(
447+
domain, info, version=version, next_version=django_next_version
448+
)
449+
450+
451+
linkcode_resolve = version_github_linkcode_resolve

0 commit comments

Comments
 (0)