old_contents: import guzzle_sphinx_theme
  
  project = "argcomplete"
  copyright = "Andrey Kislyuk and argcomplete contributors"
  author = "Andrey Kislyuk"
  version = ""
  release = ""
  language = None
  master_doc = "index"
  extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
  source_suffix = [".rst", ".md"]
  exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  pygments_style = "sphinx"
  html_theme_path = guzzle_sphinx_theme.html_theme_path()
  html_theme = "guzzle_sphinx_theme"
  html_theme_options = {
      "project_nav_name": project,
      "projectlink": "https://github.com/kislyuk/" + project,
  }
  html_sidebars = {
      "**": [
          "logo-text.html",
          # "globaltoc.html",
          "localtoc.html",
          "searchbox.html"
      ]
  }
  
new_contents: import os
  
  project = "argcomplete"
  copyright = "Andrey Kislyuk and argcomplete contributors"
  author = "Andrey Kislyuk"
  version = ""
  release = ""
  language = None
  master_doc = "index"
  extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
  source_suffix = [".rst", ".md"]
  exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  pygments_style = "sphinx"
  
  if "readthedocs.org" in os.getcwd().split("/"):
      with open("index.rst", "w") as fh:
          fh.write("Documentation for this project has moved to https://kislyuk.github.io/" + project)
  else:
      import guzzle_sphinx_theme
      html_theme_path = guzzle_sphinx_theme.html_theme_path()
      html_theme = "guzzle_sphinx_theme"
      html_theme_options = {
          "project_nav_name": project,
          "projectlink": "https://github.com/kislyuk/" + project,
      }
      html_sidebars = {
          "**": [
              "logo-text.html",
              # "globaltoc.html",
              "localtoc.html",
              "searchbox.html"
          ]
      }
  
subject: Add RTD workaround