docs: def linkcode_resolve(domain, info):
      """ Link source code to github """
      if domain != 'py' or not info['module']:
          return None
      filename = info['module'].replace('.', '/')
      mod = importlib.import_module(info['module'])
      basename = os.path.splitext(mod.__file__)[0]
      if basename.endswith('__init__'):
          filename += '/__init__'
      item = mod
      lineno = ''
      for piece in info['fullname'].split('.'):
          item = getattr(item, piece)
          try:
              lineno = '#L%d' % inspect.getsourcelines(item)[1]
          except (TypeError, IOError):
              pass
      return ("https://github.com/%s/%s/blob/%s/%s.py%s" %
              (github_user, project, release, filename, lineno))