class_docstr: Resolve .py links to their respective Github URL
code: def resolve_any_xref(
      self, env, fromdocname, builder, target, node, contnode
  ):
      if (
          target.endswith(".py") or target.endswith(".ipynb")
      ) and not target.startswith("http"):
          from_folder = os.path.dirname(fromdocname)
          contnode["refuri"] = "/".join(
              [self.ROOT, from_folder, target]
          )
          return [("githuburl:any", contnode)]
      return []
  
file_path: sentence-transformers/docs/conf.py
imports: from recommonmark.transform import AutoStructify
  import os
  from sphinx.domains import Domain
  import datetime
label_desc: Use image node_id 1 for calling the GithubURLDomain obj's underlying member method code with example usage: obj.resolve_any_xref(env, fromdocname, builder, target, node, contnode) and returns: list, list