From 508d9134b67525e9ffe62a5a80e4c272782cdad6 Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Tue, 9 May 2023 14:26:59 +0800 Subject: [PATCH] Fix doc build warning This fixes the following doc build warning: ``` Warning, treated as error: Failed to read intersphinx_mapping[https://docs.python.org/3/], ignored: SphinxWarning('The pre-Sphinx 1.0 \'intersphinx_mapping\' format is deprecated and will be removed in Sphinx 8. Update to the current format as described in the documentation. Hint: "intersphinx_mapping = {\'\': (\'https://docs.python.org/3/\', \'python-intersphinx.inv\')}".https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#confval-intersphinx_mapping') ``` --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 63c59519..9fd47f1f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -81,4 +81,4 @@ htmlhelp_basename = 'Freshmakerdoc' # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'https://docs.python.org/3/': 'python-intersphinx.inv'} +intersphinx_mapping = {'python': ('https://docs.python.org/3/', 'python-intersphinx.inv')}