summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2025-02-19 08:35:31 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-02-19 09:44:53 +0100
commit2684a383bc67149ceea93cb1b99c8492b4614dcd (patch)
treea9b71976c7541ba35725353969c23d099ef81348 /docs/conf.py
parentd764487e79469e9ad7174145aa98d8d558a4605c (diff)
Fixed docs build on Sphinx 8.2+.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 24f44b2474..579e13d21e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -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
@@ -446,8 +445,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