From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sat, 15 Jan 2022 23:15:22 +0100
Subject: docs/conf.py: Don't use --intersphinx within 'pydoctor_args'

This option requires access to the internet which isn't allowed while
package build.
Further more the requests library doesn't allow access to local
available files so using the wanted objects.inv files will need more
effort to make this usable. Also currently only a few of this files are
included in packages.
---
 docs/conf.py | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index f07e93f..a2fbb36 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -236,16 +236,16 @@ pydoctor_args = [
     "--project-url=https://twistedmatrix.com/",
     "--system-class=twisted.python._pydoctor.TwistedSystem",
     "--docformat=epytext",
-    "--intersphinx=https://docs.python.org/3/objects.inv",
-    "--intersphinx=https://cryptography.io/en/latest/objects.inv",
-    "--intersphinx=https://pyopenssl.readthedocs.io/en/stable/objects.inv",
-    "--intersphinx=https://hyperlink.readthedocs.io/en/stable/objects.inv",
-    "--intersphinx=https://twisted.org/constantly/docs/objects.inv",
-    "--intersphinx=https://twisted.org/incremental/docs/objects.inv",
-    "--intersphinx=https://python-hyper.org/projects/hyper-h2/en/stable/objects.inv",
-    "--intersphinx=https://priority.readthedocs.io/en/stable/objects.inv",
-    "--intersphinx=https://zopeinterface.readthedocs.io/en/latest/objects.inv",
-    "--intersphinx=https://automat.readthedocs.io/en/latest/objects.inv",
+#    "--intersphinx=https://docs.python.org/3/objects.inv",
+#    "--intersphinx=https://cryptography.io/en/latest/objects.inv",
+#    "--intersphinx=https://pyopenssl.readthedocs.io/en/stable/objects.inv",
+#    "--intersphinx=https://hyperlink.readthedocs.io/en/stable/objects.inv",
+#    "--intersphinx=https://twisted.org/constantly/docs/objects.inv",
+#    "--intersphinx=https://twisted.org/incremental/docs/objects.inv",
+#    "--intersphinx=https://python-hyper.org/projects/hyper-h2/en/stable/objects.inv",
+#    "--intersphinx=https://priority.readthedocs.io/en/stable/objects.inv",
+#    "--intersphinx=https://zopeinterface.readthedocs.io/en/latest/objects.inv",
+#    "--intersphinx=https://automat.readthedocs.io/en/latest/objects.inv",
     f"--project-base-dir={_source_root}",
     "--html-output={outdir}/api",
     str(_source_root / "twisted"),
@@ -260,7 +260,8 @@ traclinks_base_url = "https://twistedmatrix.com/trac"
 # The inventory file may be None to use the default location at the given URI.
 intersphinx_mapping = {
     'py3': ('/usr/share/doc/python3-doc/html', None),
-    "zopeinterface": ("https://zopeinterface.readthedocs.io/en/latest", None),
+    'python': ('http://docs.python.org/3', '/usr/share/doc/python3/html/objects.inv'),
+#    "zopeinterface": ("https://zopeinterface.readthedocs.io/en/latest", None),
 }
 # How long to cache remote inventories. Positive is a number of days,
 # negative means infinite. The default is 5 days, which should be fine
