prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  The latest and the stable documentation may have been built using the development version
  Shouldn't be [there](https://pip-tools.readthedocs.io/) the latest released version?
  
  <img width="788" alt="Screenshot 2023-04-07 at 01 17 17" src="https://user-images.githubusercontent.com/7377671/230510654-fd15e934-4243-4ee3-85c6-bb8d55e656d4.png">
  
  
  
  </issue>
  <code>
  [start of docs/conf.py]
  1 # https://www.sphinx-doc.org/en/master/usage/configuration.html
  2 """Configuration file for the Sphinx documentation builder."""
  3 
  4 from __future__ import annotations
  5 
  6 from functools import partial
  7 from pathlib import Path
  8 
  9 from setuptools_scm import get_version
  10 
  11 # -- Path setup --------------------------------------------------------------
  12 
  13 PROJECT_ROOT_DIR = Path(__file__).parents[1].resolve()
  14 get_scm_version = partial(get_version, root=PROJECT_ROOT_DIR)
  15 
  16 
  17 # -- Project information -----------------------------------------------------
  18 
  19 project = "pip-tools"
  20 author = f"{project} Contributors"
  21 copyright = f"The {author}"
  22 
  23 # The short X.Y version
  24 version = ".".join(
  25     get_scm_version(
  26         local_scheme="no-local-version",
  27     ).split(
  28         "."
  29     )[:3],
  30 )
  31 
  32 # The full version, including alpha/beta/rc tags
  33 release = get_scm_version()
  34 
  35 
  36 # -- General configuration ---------------------------------------------------
  37 
  38 # Add any Sphinx extension module names here, as strings. They can be
  39 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  40 # ones.
  41 extensions = ["myst_parser"]
  42 
  43 
  44 # -- Options for HTML output -------------------------------------------------
  45 
  46 # The theme to use for HTML and HTML Help pages.  See the documentation for
  47 # a list of builtin themes.
  48 #
  49 html_theme = "furo"
  50 
  51 
  52 # -------------------------------------------------------------------------
  53 default_role = "any"
  54 nitpicky = True
  55 
  56 linkcheck_ignore = [
  57     r"^https://matrix\.to/#",
  58 ]
  59 
  60 suppress_warnings = ["myst.xref_missing"]
  61
  [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
  @@ -3,15 +3,17 @@
   
   from __future__ import annotations
   
  -from functools import partial
  +from importlib.metadata import version as get_version
   from pathlib import Path
   
  -from setuptools_scm import get_version
  +from sphinx.util import logging
  +from sphinx.util.console import bold
  +
  +logger = logging.getLogger(__name__)
   
   # -- Path setup --------------------------------------------------------------
   
   PROJECT_ROOT_DIR = Path(__file__).parents[1].resolve()
  -get_scm_version = partial(get_version, root=PROJECT_ROOT_DIR)
   
   
   # -- Project information -----------------------------------------------------
  @@ -20,18 +22,14 @@
   author = f"{project} Contributors"
   copyright = f"The {author}"
   
  -# The short X.Y version
  -version = ".".join(
  -    get_scm_version(
  -        local_scheme="no-local-version",
  -    ).split(
  -        "."
  -    )[:3],
  -)
  -
   # The full version, including alpha/beta/rc tags
  -release = get_scm_version()
  +release = get_version(project)
  +
  +# The short X.Y version
  +version = ".".join(release.split(".")[:3])
   
  +logger.info(bold("%s version: %s"), project, version)
  +logger.info(bold("%s release: %s"), project, release)
   
   # -- General configuration ---------------------------------------------------
   
  @@ -47,6 +45,7 @@
   # a list of builtin themes.
   #
   html_theme = "furo"
  +html_title = f"<nobr>{project}</nobr> documentation v{release}"
   
   
   # -------------------------------------------------------------------------
  
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@@ -3,15 +3,17 @@\n \n from __future__ import annotations\n \n-from functools import partial\n+from importlib.metadata import version as get_version\n from pathlib import Path\n \n-from setuptools_scm import get_version\n+from sphinx.util import logging\n+from sphinx.util.console import bold\n+\n+logger = logging.getLogger(__name__)\n \n # -- Path setup --------------------------------------------------------------\n \n PROJECT_ROOT_DIR = Path(__file__).parents[1].resolve()\n-get_scm_version = partial(get_version, root=PROJECT_ROOT_DIR)\n \n \n # -- Project information -----------------------------------------------------\n@@ -20,18 +22,14 @@\n author = f\"{project} Contributors\"\n copyright = f\"The {author}\"\n \n-# The short X.Y version\n-version = \".\".join(\n-    get_scm_version(\n-        local_scheme=\"no-local-version\",\n-    ).split(\n-        \".\"\n-    )[:3],\n-)\n-\n # The full version, including alpha/beta/rc tags\n-release = get_scm_version()\n+release = get_version(project)\n+\n+# The short X.Y version\n+version = \".\".join(release.split(\".\")[:3])\n \n+logger.info(bold(\"%s version: %s\"), project, version)\n+logger.info(bold(\"%s release: %s\"), project, release)\n \n # -- General configuration ---------------------------------------------------\n \n@@ -47,6 +45,7 @@\n # a list of builtin themes.\n #\n html_theme = \"furo\"\n+html_title = f\"<nobr>{project}</nobr> documentation v{release}\"\n \n \n # -------------------------------------------------------------------------\n", "issue": "The latest and the stable documentation may have been built using the development version\nShouldn't be [there](https://pip-tools.readthedocs.io/) the latest released version?\r\n\r\n<img width=\"788\" alt=\"Screenshot 2023-04-07 at 01 17 17\" src=\"https://user-images.githubusercontent.com/7377671/230510654-fd15e934-4243-4ee3-85c6-bb8d55e656d4.png\">\r\n\r\n\n", "before_files": [{"content": "# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\"\"\"Configuration file for the Sphinx documentation builder.\"\"\"\n\nfrom __future__ import annotations\n\nfrom functools import partial\nfrom pathlib import Path\n\nfrom setuptools_scm import get_version\n\n# -- Path setup --------------------------------------------------------------\n\nPROJECT_ROOT_DIR = Path(__file__).parents[1].resolve()\nget_scm_version = partial(get_version, root=PROJECT_ROOT_DIR)\n\n\n# -- Project information -----------------------------------------------------\n\nproject = \"pip-tools\"\nauthor = f\"{project} Contributors\"\ncopyright = f\"The {author}\"\n\n# The short X.Y version\nversion = \".\".join(\n    get_scm_version(\n        local_scheme=\"no-local-version\",\n    ).split(\n        \".\"\n    )[:3],\n)\n\n# The full version, including alpha/beta/rc tags\nrelease = get_scm_version()\n\n\n# -- General configuration ---------------------------------------------------\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 = [\"myst_parser\"]\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 = \"furo\"\n\n\n# -------------------------------------------------------------------------\ndefault_role = \"any\"\nnitpicky = True\n\nlinkcheck_ignore = [\n    r\"^https://matrix\\.to/#\",\n]\n\nsuppress_warnings = [\"myst.xref_missing\"]\n", "path": "docs/conf.py"}]}