python-wheel/0001-Enabled-Intersphinx-linking-to-Python-documentation.patch
openeuler-ci-bot 227ce44834 chore: add github actions
Signed-off-by: liubo <liubo1@xfusion.com>
2023-11-28 09:53:15 +08:00

37 lines
1.1 KiB
Diff

From 178d576c1819faf47802f66460a0cd3d568916ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
Date: Sat, 7 Oct 2017 19:53:38 +0300
Subject: [PATCH] Enabled Intersphinx linking to Python documentation
---
docs/conf.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 1db319d..e9a5b35 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -25,7 +25,7 @@ import pkg_resources
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
+extensions = ['sphinx.ext.intersphinx']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -87,6 +87,10 @@ highlight_language = 'bash'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
+intersphinx_mapping = {
+ 'python': ('https://docs.python.org/', None)
+}
+
# -- Options for HTML output ---------------------------------------------------
--
2.42.0.windows.2