Skip to content
Snippets Groups Projects
Commit bf282c1c authored by Andrey Rakhmatullin's avatar Andrey Rakhmatullin
Browse files

Update the patch.

parent c3cf694b
No related branches found
No related tags found
No related merge requests found
......@@ -3,20 +3,28 @@ Date: Sat, 20 Apr 2024 22:44:30 +0500
Subject: Use local intersphinx files.
---
docs/conf.py | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
docs/conf.py | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index d63672f..9652f67 100644
index ceeb2d2..27030d3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -247,7 +247,19 @@ texinfo_documents = [
@@ -12,6 +12,7 @@
# serve to show the default.
import re
+import sys
from pathlib import Path
# If extensions (or modules to document with autodoc) are in another directory,
@@ -245,7 +246,19 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
-intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
+def check_object_path(key, url, path):
+ if path and os.path.isfile(path):
+ if path and Path(path).is_file():
+ return {key: (url, path)}
+ return {}
+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment