From 200a96238823ad225fb630a71a943728bd0e7692 Mon Sep 17 00:00:00 2001 From: su-fang Date: Wed, 15 Feb 2023 10:04:16 +0800 Subject: [PATCH] =?UTF-8?q?Apply=20patchs:=200002-Use-local-intersphinx-ma?= =?UTF-8?q?ppings.patch=20From:=20Sebastian=20Ramacher=20=20Date:=20Thu,=2014=20Jul=202016=2023:01:01=20+0200=20Sub?= =?UTF-8?q?ject:=20Use=20local=20intersphinx=20mappings=200005-Drop-sphinx?= =?UTF-8?q?contrib=5Ftrio-extension.patch=20From:=20=3D=3Futf-8=3Fb=3FT25k?= =?UTF-8?q?xZllaiBOb3bDvQ=3D=3D=3F=3D=20=20Date:=20Fri,?= =?UTF-8?q?=2015=20Jun=202018=2013:43:56=20+0200=20Subject:=20Drop=20sphin?= =?UTF-8?q?xcontrib=5Ftrio=20extension=200006-Disable-sphinx-extensions.pa?= =?UTF-8?q?tch=20From:=20=3D=3Futf-8=3Fb=3FT25kxZllaiBOb3bDvQ=3D=3D=3F=3D?= =?UTF-8?q?=20=20Date:=20Sun,=203=20Nov=202019=2015:47:1?= =?UTF-8?q?1=20-0800=20Subject:=20Disable=20some=20of=20Sphinx=20extension?= =?UTF-8?q?s=20which=20we=20don't=20have=20in=20Debian?= --- debian/changelog | 6 ++++++ doc/en/conf.py | 19 ++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 28217b4..aed559b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pytest (7.2.1-ok2) yangtze; urgency=medium + + * Apply patchs. + + -- sufang Wed, 15 Feb 2023 10:03:38 +0800 + pytest (7.2.1-ok1) yangtze; urgency=medium * Build for openkylin. diff --git a/doc/en/conf.py b/doc/en/conf.py index 5184ee7..ff0049d 100644 --- a/doc/en/conf.py +++ b/doc/en/conf.py @@ -67,15 +67,12 @@ latex_elements = { # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ "pallets_sphinx_themes", - "pygments_pytest", "sphinx.ext.autodoc", "sphinx.ext.autosummary", "sphinx.ext.extlinks", "sphinx.ext.intersphinx", "sphinx.ext.todo", "sphinx.ext.viewcode", - "sphinx_removed_in", - "sphinxcontrib_trio", ] # Building PDF docs on readthedocs requires inkscape for svg to pdf @@ -395,6 +392,22 @@ intersphinx_mapping = { "setuptools": ("https://setuptools.pypa.io/en/stable", None), "packaging": ("https://packaging.python.org/en/latest", None), } +def check_object_path(key, url, path): + if os.path.isfile(path): + return {key: (url, path)} + return {} + +intersphinx_mapping = {} +intersphinx_mapping.update( + check_object_path('python', + 'http://docs.python.org/', + '/usr/share/doc/python%d.%d/html/objects.inv' % \ + sys.version_info[:2])) +# The Debian packaging for pluggy does not yet generate the documentation +intersphinx_mapping.update( + check_object_path('pluggy', + 'https://pluggy.readthedocs.io/en/latest', + '/usr/share/doc/python3-pluggy/html/objects.inv')) def configure_logging(app: "sphinx.application.Sphinx") -> None: