72e9b9b
diff -up pyte-0.8.0/docs/conf.py.orig pyte-0.8.0/docs/conf.py
72e9b9b
--- pyte-0.8.0/docs/conf.py.orig	2018-04-06 22:45:37.000000000 +0200
72e9b9b
+++ pyte-0.8.0/docs/conf.py	2021-02-21 02:27:31.771179277 +0100
72e9b9b
@@ -27,9 +27,8 @@ sys.path.insert(0, os.path.abspath('..')
72e9b9b
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
72e9b9b
 extensions = ['sphinx.ext.autodoc',
72e9b9b
               'sphinx.ext.todo',
72e9b9b
-              'sphinx.ext.intersphinx',
72e9b9b
-              'sphinx.ext.doctest',
72e9b9b
-              'sphinx.ext.linkcode']
72e9b9b
+              'sphinx.ext.doctest']
72e9b9b
+
72e9b9b
 
72e9b9b
 # Add any paths that contain templates here, relative to this directory.
72e9b9b
 templates_path = ['_templates']
72e9b9b
@@ -90,46 +89,6 @@ pygments_style = 'sphinx'
72e9b9b
 # A list of ignored prefixes for module index sorting.
72e9b9b
 #modindex_common_prefix = []
72e9b9b
 
72e9b9b
-linkcode_base_url = "https://github.com/selectel/pyte/tree/"
72e9b9b
-
72e9b9b
-def resolve_tag():
72e9b9b
-    from urllib.request import urlopen
72e9b9b
-    from urllib.error import HTTPError
72e9b9b
-    try:
72e9b9b
-        urlopen(linkcode_base_url + release)
72e9b9b
-    except HTTPError:
72e9b9b
-        return "master"
72e9b9b
-    else:
72e9b9b
-        return release
72e9b9b
-
72e9b9b
-
72e9b9b
-tag = resolve_tag()
72e9b9b
-
72e9b9b
-
72e9b9b
-# Resolve function for the linkcode extension.
72e9b9b
-def linkcode_resolve(domain, info):
72e9b9b
-    def find_source():
72e9b9b
-        # try to find the file and line number, based on code from numpy:
72e9b9b
-        # https://github.com/numpy/numpy/blob/master/doc/source/conf.py#L286
72e9b9b
-        obj = sys.modules[info['module']]
72e9b9b
-        for part in info['fullname'].split('.'):
72e9b9b
-            obj = getattr(obj, part)
72e9b9b
-
72e9b9b
-        import inspect
72e9b9b
-        import os
72e9b9b
-        import pyte
72e9b9b
-        fn = inspect.getsourcefile(obj)
72e9b9b
-        fn = os.path.relpath(fn, os.path.dirname(pyte.__file__))
72e9b9b
-        source, lineno = inspect.getsourcelines(obj)
72e9b9b
-        return fn, lineno, lineno + len(source) - 1
72e9b9b
-
72e9b9b
-    try:
72e9b9b
-        filename = 'pyte/%s#L%d-L%d' % find_source()
72e9b9b
-    except Exception:
72e9b9b
-        return None  # Failed to resolve source or line numbers.
72e9b9b
-
72e9b9b
-    return linkcode_base_url + "%s/%s" % (tag, filename)
72e9b9b
-
72e9b9b
 # -- Options for HTML output ---------------------------------------------------
72e9b9b
 
72e9b9b
 ## Read the docs style: