text: """Sphinx configuration."""
  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  
  import inspect
  import os
  import sys
  from datetime import datetime
  from typing import Any
  from typing import Dict
  
  import warframe_metrics
  
  project = "warframe-metrics"
  author = "Rajiv Sarvepalli"
  copyright = f"{datetime.now().year}, {author}"
  version = "0.1.3"
  extensions = [
      "sphinx.ext.autodoc",
      "sphinx.ext.napoleon",
      "sphinx_autodoc_typehints",
      "sphinx_copybutton",
      "sphinx.ext.autosummary",
  ]
  html_static_path = ["_static"]
  copybutton_prompt_text = r">>> |\$ |\.\.\. "
  copybutton_prompt_is_regexp = True
  copybutton_only_copy_prompt_lines = False
  
  html_theme = "pydata_sphinx_theme"
  html_theme_options = {
      "github_url": "https://github.com/rajivsarvepalli/warframe-metrics",
      "show_prev_next": False,
      "external_links": [
          {
              "name": "Changelog",
              "url": "https://github.com/rajivsarvepalli/warframe-metrics/releases",
          },
      ],
  }
  
  html_css_files = [
      "css/getting_started.css",
      "css/pandas.css",
  ]
  
  html_favicon = "_static/warframe_logo.jpg"
  
  autosummary_generate = True  # Turn on sphinx.ext.autosummary
  
  # Add any paths that contain templates here, relative to this directory.
  templates_path = ["_templates"]
  
  
  def linkcode_resolve(domain: str, info: Dict) -> str:
      """Determine the URL corresponding to Python object."""
      if domain != "py":
          return None
  
      modname = info["module"]
      fullname = info["fullname"]
  
      submod = sys.modules.get(modname)
      ret = _help_resolve(submod, fullname)
      if ret is None:
          return ret
      else:
          obj, fn = ret
      try:
          source, lineno = inspect.getsourcelines(obj)
      except OSError:
          lineno = None
  
      if lineno:
          linespec = f"#L{lineno}-L{lineno + len(source) - 1}"
      else:
          linespec = ""
  
      tag_or_branch = os.getenv("SPHINX_MULTIVERSION_NAME", default="master")
      fn = os.path.relpath(fn, start=os.path.dirname(warframe_metrics.__file__)).replace(
          os.sep, "/"
      )
      url = (
          "http://github.com/rajivsarvepalli/warframe-metrics"
          "/blob/%s/src/warframe_metrics/%s%s"
      )
      url = url % (tag_or_branch, fn, linespec)
      return url
  
  
  def _help_resolve(submod: Any, fullname: str) -> Any:
      if submod is None:
          return None
  
      obj = submod
      for part in fullname.split("."):
          try:
              obj = getattr(obj, part)
          except AttributeError:
              return None
  
      try:
          fn = inspect.getsourcefile(inspect.unwrap(obj))
      except TypeError:
          fn = None
      if not fn:
          return None
  
      return obj, fn
  