prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Host docs, build on release
  Decide where to host generated docs, configure CI to generate (and possibly upload) new docs on each release.
  
  See #6 for CI bootstrapping.
  
  </issue>
  <code>
  [start of docs/conf.py]
  1 # Configuration file for the Sphinx documentation builder.
  2 #
  3 # This file only contains a selection of the most common options. For a full
  4 # list see the documentation:
  5 # http://www.sphinx-doc.org/en/master/config
  6 
  7 # -- Path setup --------------------------------------------------------------
  8 
  9 # If extensions (or modules to document with autodoc) are in another directory,
  10 # add these directories to sys.path here. If the directory is relative to the
  11 # documentation root, use os.path.abspath to make it absolute, like shown here.
  12 
  13 import os
  14 import sys
  15 
  16 sys.path.insert(0, os.path.abspath("../opentelemetry-api/src/"))
  17 
  18 
  19 # -- Project information -----------------------------------------------------
  20 
  21 project = "OpenTelemetry"
  22 copyright = "2019, OpenTelemetry Authors"
  23 author = "OpenTelemetry Authors"
  24 
  25 
  26 # -- General configuration ---------------------------------------------------
  27 
  28 # Easy automatic cross-references for `code in backticks`
  29 default_role = "any"
  30 
  31 # Add any Sphinx extension module names here, as strings. They can be
  32 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  33 # ones.
  34 extensions = [
  35     # API doc generation
  36     "sphinx.ext.autodoc",
  37     # Support for google-style docstrings
  38     "sphinx.ext.napoleon",
  39     # Infer types from hints instead of docstrings
  40     "sphinx_autodoc_typehints",
  41     # Add links to source from generated docs
  42     "sphinx.ext.viewcode",
  43     # Link to other sphinx docs
  44     "sphinx.ext.intersphinx",
  45 ]
  46 
  47 intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
  48 
  49 # http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky
  50 # Sphinx will warn about all references where the target cannot be found.
  51 nitpicky = True
  52 nitpick_ignore = []
  53 
  54 # Add any paths that contain templates here, relative to this directory.
  55 templates_path = ["_templates"]
  56 
  57 # List of patterns, relative to source directory, that match files and
  58 # directories to ignore when looking for source files.
  59 # This pattern also affects html_static_path and html_extra_path.
  60 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  61 
  62 autodoc_default_options = {
  63     "members": True,
  64     "undoc-members": True,
  65     "show-inheritance": True,
  66     "member-order": "bysource",
  67 }
  68 
  69 # -- Options for HTML output -------------------------------------------------
  70 
  71 # The theme to use for HTML and HTML Help pages.  See the documentation for
  72 # a list of builtin themes.
  73 #
  74 html_theme = "sphinx_rtd_theme"
  75 
  76 # Add any paths that contain custom static files (such as style sheets) here,
  77 # relative to this directory. They are copied after the builtin static files,
  78 # so a file named "default.css" will overwrite the builtin "default.css".
  79 html_static_path = []
  80
  [end of docs/conf.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/docs/conf.py b/docs/conf.py
  --- a/docs/conf.py
  +++ b/docs/conf.py
  @@ -42,6 +42,9 @@
       "sphinx.ext.viewcode",
       # Link to other sphinx docs
       "sphinx.ext.intersphinx",
  +    # Add a .nojekyll file to the generated HTML docs
  +    # https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing
  +    "sphinx.ext.githubpages",
   ]
   
   intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
  
verification_info: {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -42,6 +42,9 @@\n     \"sphinx.ext.viewcode\",\n     # Link to other sphinx docs\n     \"sphinx.ext.intersphinx\",\n+    # Add a .nojekyll file to the generated HTML docs\n+    # https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing\n+    \"sphinx.ext.githubpages\",\n ]\n \n intersphinx_mapping = {\"python\": (\"https://docs.python.org/3/\", None)}\n", "issue": "Host docs, build on release\nDecide where to host generated docs, configure CI to generate (and possibly upload) new docs on each release.\r\n\r\nSee #6 for CI bootstrapping.\n", "before_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n\nimport os\nimport sys\n\nsys.path.insert(0, os.path.abspath(\"../opentelemetry-api/src/\"))\n\n\n# -- Project information -----------------------------------------------------\n\nproject = \"OpenTelemetry\"\ncopyright = \"2019, OpenTelemetry Authors\"\nauthor = \"OpenTelemetry Authors\"\n\n\n# -- General configuration ---------------------------------------------------\n\n# Easy automatic cross-references for `code in backticks`\ndefault_role = \"any\"\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    # API doc generation\n    \"sphinx.ext.autodoc\",\n    # Support for google-style docstrings\n    \"sphinx.ext.napoleon\",\n    # Infer types from hints instead of docstrings\n    \"sphinx_autodoc_typehints\",\n    # Add links to source from generated docs\n    \"sphinx.ext.viewcode\",\n    # Link to other sphinx docs\n    \"sphinx.ext.intersphinx\",\n]\n\nintersphinx_mapping = {\"python\": (\"https://docs.python.org/3/\", None)}\n\n# http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky\n# Sphinx will warn about all references where the target cannot be found.\nnitpicky = True\nnitpick_ignore = []\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This pattern also affects html_static_path and html_extra_path.\nexclude_patterns = [\"_build\", \"Thumbs.db\", \".DS_Store\"]\n\nautodoc_default_options = {\n    \"members\": True,\n    \"undoc-members\": True,\n    \"show-inheritance\": True,\n    \"member-order\": \"bysource\",\n}\n\n# -- Options for HTML output -------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"sphinx_rtd_theme\"\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = []\n", "path": "docs/conf.py"}]}