prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [docs] Enable documentation of multiple versions at once
  As of now, the documentation that would be deployed publicly is only the latest version. The better alternative would be:
  - having the latest version by default
  - having the documentation of each release accessible as well using a displayed selector
  
  Hugginface transformers did the following: https://github.com/huggingface/transformers/blob/master/.circleci/deploy.sh
  
  </issue>
  <code>
  [start of docs/source/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 # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6 
  7 # -- Path setup --------------------------------------------------------------
  8 
  9 import sphinx_rtd_theme
  10 
  11 # If extensions (or modules to document with autodoc) are in another directory,
  12 # add these directories to sys.path here. If the directory is relative to the
  13 # documentation root, use os.path.abspath to make it absolute, like shown here.
  14 #
  15 import os
  16 import sys
  17 sys.path.insert(0, os.path.abspath('../..'))
  18 import doctr
  19 
  20 # -- Project information -----------------------------------------------------
  21 
  22 master_doc = 'index'
  23 project = 'doctr'
  24 copyright = '2021, Mindee'
  25 author = 'François-Guillaume Fernandez, Charles Gaillard, Mohamed Biaz'
  26 
  27 # The full version, including alpha/beta/rc tags
  28 version = doctr.__version__
  29 release = doctr.__version__ + '-git'
  30 
  31 
  32 # -- General configuration ---------------------------------------------------
  33 
  34 # Add any Sphinx extension module names here, as strings. They can be
  35 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  36 # ones.
  37 extensions = [
  38 	'sphinx.ext.autodoc',
  39 	'sphinx.ext.napoleon',
  40 	'sphinx.ext.viewcode',
  41     'sphinx.ext.coverage',
  42     'sphinx.ext.mathjax',
  43     'sphinxemoji.sphinxemoji',  # cf. https://sphinxemojicodes.readthedocs.io/en/stable/
  44     'sphinx_copybutton',
  45 ]
  46 
  47 napoleon_use_ivar = True
  48 
  49 # Add any paths that contain templates here, relative to this directory.
  50 templates_path = ['_templates']
  51 
  52 # List of patterns, relative to source directory, that match files and
  53 # directories to ignore when looking for source files.
  54 # This pattern also affects html_static_path and html_extra_path.
  55 exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
  56 
  57 
  58 # The name of the Pygments (syntax highlighting) style to use.
  59 pygments_style = 'sphinx'
  60 highlight_language = 'python3'
  61 
  62 # -- Options for HTML output -------------------------------------------------
  63 
  64 # The theme to use for HTML and HTML Help pages.  See the documentation for
  65 # a list of builtin themes.
  66 #
  67 html_theme = 'sphinx_rtd_theme'
  68 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  69 
  70 # Theme options are theme-specific and customize the look and feel of a theme
  71 # further.  For a list of options available for each theme, see the
  72 # documentation.
  73 #
  74 html_theme_options = {
  75     'collapse_navigation': False,
  76     'display_version': True,
  77     'logo_only': False,
  78 }
  79 
  80 # html_logo = '_static/images/logo.png'
  81 
  82 
  83 # Add any paths that contain custom static files (such as style sheets) here,
  84 # relative to this directory. They are copied after the builtin static files,
  85 # so a file named "default.css" will overwrite the builtin "default.css".
  86 html_static_path = ['_static']
  87 
  88 # A list of files that should not be packed into the epub file.
  89 epub_exclude_files = ['search.html']
  90 
  91 def setup(app):
  92     app.add_css_file('css/mindee.css')
  93     app.add_js_file('js/custom.js')
  94
  [end of docs/source/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/source/conf.py b/docs/source/conf.py
  --- a/docs/source/conf.py
  +++ b/docs/source/conf.py
  @@ -73,7 +73,7 @@
   #
   html_theme_options = {
       'collapse_navigation': False,
  -    'display_version': True,
  +    'display_version': False,
       'logo_only': False,
   }
  
verification_info: {"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -73,7 +73,7 @@\n #\n html_theme_options = {\n     'collapse_navigation': False,\n-    'display_version': True,\n+    'display_version': False,\n     'logo_only': False,\n }\n", "issue": "[docs] Enable documentation of multiple versions at once\nAs of now, the documentation that would be deployed publicly is only the latest version. The better alternative would be:\r\n- having the latest version by default\r\n- having the documentation of each release accessible as well using a displayed selector\r\n\r\nHugginface transformers did the following: https://github.com/huggingface/transformers/blob/master/.circleci/deploy.sh\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# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup --------------------------------------------------------------\n\nimport sphinx_rtd_theme\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\nsys.path.insert(0, os.path.abspath('../..'))\nimport doctr\n\n# -- Project information -----------------------------------------------------\n\nmaster_doc = 'index'\nproject = 'doctr'\ncopyright = '2021, Mindee'\nauthor = 'Fran\u00e7ois-Guillaume Fernandez, Charles Gaillard, Mohamed Biaz'\n\n# The full version, including alpha/beta/rc tags\nversion = doctr.__version__\nrelease = doctr.__version__ + '-git'\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 = [\n\t'sphinx.ext.autodoc',\n\t'sphinx.ext.napoleon',\n\t'sphinx.ext.viewcode',\n    'sphinx.ext.coverage',\n    'sphinx.ext.mathjax',\n    'sphinxemoji.sphinxemoji',  # cf. https://sphinxemojicodes.readthedocs.io/en/stable/\n    'sphinx_copybutton',\n]\n\nnapoleon_use_ivar = True\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 = [u'_build', 'Thumbs.db', '.DS_Store']\n\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\nhighlight_language = 'python3'\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'\nhtml_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further.  For a list of options available for each theme, see the\n# documentation.\n#\nhtml_theme_options = {\n    'collapse_navigation': False,\n    'display_version': True,\n    'logo_only': False,\n}\n\n# html_logo = '_static/images/logo.png'\n\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 = ['_static']\n\n# A list of files that should not be packed into the epub file.\nepub_exclude_files = ['search.html']\n\ndef setup(app):\n    app.add_css_file('css/mindee.css')\n    app.add_js_file('js/custom.js')\n", "path": "docs/source/conf.py"}]}