prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Update docs version
  Update docs version and link copyright in docs footer to lightly website
  
  Closes #618 
  
  </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 # 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 sys.path.insert(0, os.path.abspath('../..'))
  16 
  17 import sphinx_rtd_theme
  18 
  19 
  20 # -- Project information -----------------------------------------------------
  21 
  22 project = 'lightly'
  23 copyright = '2020, Lightly AG'
  24 author = 'Philipp Wirth, Igor Susmelj'
  25 
  26 # The full version, including alpha/beta/rc tags
  27 release = '1.0.0'
  28 master_doc = 'index'
  29 
  30 
  31 # -- General configuration ---------------------------------------------------
  32 
  33 # Add any Sphinx extension module names here, as strings. They can be
  34 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  35 # ones.
  36 extensions = [
  37     "sphinx_rtd_theme",
  38     #'sphinx.ext.napoleon',
  39     "sphinx.ext.autosummary",
  40     "sphinx_gallery.gen_gallery",
  41     "sphinx_tabs.tabs",
  42     "sphinx_copybutton",
  43 ]
  44 
  45 sphinx_gallery_conf = {
  46      'examples_dirs': ['tutorials_source/package', 'tutorials_source/platform'],
  47      'gallery_dirs': ['tutorials/package', 'tutorials/platform'],  # path to where to save gallery generated output
  48      'filename_pattern': '/tutorial_',
  49 }
  50 
  51 napoleon_google_docstring = True
  52 napoleon_numpy_docstring = False
  53 napoleon_include_init_with_doc = False
  54 napoleon_include_private_with_doc = False
  55 napoleon_include_special_with_doc = False
  56 napoleon_use_admonition_for_examples = False
  57 napoleon_use_admonition_for_notes = False
  58 napoleon_use_admonition_for_references = False
  59 napoleon_use_ivar = False
  60 napoleon_use_param = False
  61 napoleon_use_rtype = False
  62 napoleon_type_aliases = None
  63 
  64 # Add any paths that contain templates here, relative to this directory.
  65 templates_path = ['_templates']
  66 
  67 # List of patterns, relative to source directory, that match files and
  68 # directories to ignore when looking for source files.
  69 # This pattern also affects html_static_path and html_extra_path.
  70 exclude_patterns = []
  71 
  72 
  73 # -- Options for HTML output -------------------------------------------------
  74 
  75 # The theme to use for HTML and HTML Help pages.  See the documentation for
  76 # a list of builtin themes.
  77 #
  78 html_theme = 'sphinx_rtd_theme'
  79 
  80 html_theme_options = {
  81     'collapse_navigation': False, # set to false to prevent menu item collapse
  82 }
  83 
  84 # Add any paths that contain custom static files (such as style sheets) here,
  85 # relative to this directory. They are copied after the builtin static files,
  86 # so a file named "default.css" will overwrite the builtin "default.css".
  87 html_static_path = ['_static']
  88 
  89 html_favicon = 'favicon.png'
  90 
  91 #html_logo = "../logos/lightly_logo_crop.png"
  92 def setup(app):
  93     app.add_css_file('css/my-styles.css')
  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
  @@ -15,16 +15,19 @@
   sys.path.insert(0, os.path.abspath('../..'))
   
   import sphinx_rtd_theme
  +import lightly
   
   
   # -- Project information -----------------------------------------------------
   
   project = 'lightly'
  -copyright = '2020, Lightly AG'
  +copyright_year = '2020'
  +copyright = "Lightly AG"
  +website_url = 'https://www.lightly.ai/'
   author = 'Philipp Wirth, Igor Susmelj'
   
   # The full version, including alpha/beta/rc tags
  -release = '1.0.0'
  +release = lightly.__version__
   master_doc = 'index'
   
   
  @@ -79,6 +82,7 @@
   
   html_theme_options = {
       'collapse_navigation': False, # set to false to prevent menu item collapse
  +    'logo_only': True
   }
   
   # Add any paths that contain custom static files (such as style sheets) here,
  @@ -88,6 +92,10 @@
   
   html_favicon = 'favicon.png'
   
  -#html_logo = "../logos/lightly_logo_crop.png"
  -def setup(app):
  -    app.add_css_file('css/my-styles.css')
  +html_logo = '../logos/lightly_logo_crop_white_text.png'
  +
  +# Exposes variables so that they can be used by django
  +html_context = {
  +    'copyright_year': copyright_year,
  +    'website_url': website_url,
  +}
  \ No newline at end of file
  
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@@ -15,16 +15,19 @@\n sys.path.insert(0, os.path.abspath('../..'))\n \n import sphinx_rtd_theme\n+import lightly\n \n \n # -- Project information -----------------------------------------------------\n \n project = 'lightly'\n-copyright = '2020, Lightly AG'\n+copyright_year = '2020'\n+copyright = \"Lightly AG\"\n+website_url = 'https://www.lightly.ai/'\n author = 'Philipp Wirth, Igor Susmelj'\n \n # The full version, including alpha/beta/rc tags\n-release = '1.0.0'\n+release = lightly.__version__\n master_doc = 'index'\n \n \n@@ -79,6 +82,7 @@\n \n html_theme_options = {\n     'collapse_navigation': False, # set to false to prevent menu item collapse\n+    'logo_only': True\n }\n \n # Add any paths that contain custom static files (such as style sheets) here,\n@@ -88,6 +92,10 @@\n \n html_favicon = 'favicon.png'\n \n-#html_logo = \"../logos/lightly_logo_crop.png\"\n-def setup(app):\n-    app.add_css_file('css/my-styles.css')\n+html_logo = '../logos/lightly_logo_crop_white_text.png'\n+\n+#\u00a0Exposes variables so that they can be used by django\n+html_context = {\n+    'copyright_year': copyright_year,\n+    'website_url': website_url,\n+}\n\\ No newline at end of file\n", "issue": "Update docs version\nUpdate docs version and link copyright in docs footer to lightly website\r\n\r\nCloses #618 \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\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('../..'))\n\nimport sphinx_rtd_theme\n\n\n# -- Project information -----------------------------------------------------\n\nproject = 'lightly'\ncopyright = '2020, Lightly AG'\nauthor = 'Philipp Wirth, Igor Susmelj'\n\n# The full version, including alpha/beta/rc tags\nrelease = '1.0.0'\nmaster_doc = 'index'\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    \"sphinx_rtd_theme\",\n    #'sphinx.ext.napoleon',\n    \"sphinx.ext.autosummary\",\n    \"sphinx_gallery.gen_gallery\",\n    \"sphinx_tabs.tabs\",\n    \"sphinx_copybutton\",\n]\n\nsphinx_gallery_conf = {\n     'examples_dirs': ['tutorials_source/package', 'tutorials_source/platform'],\n     'gallery_dirs': ['tutorials/package', 'tutorials/platform'],  # path to where to save gallery generated output\n     'filename_pattern': '/tutorial_',\n}\n\nnapoleon_google_docstring = True\nnapoleon_numpy_docstring = False\nnapoleon_include_init_with_doc = False\nnapoleon_include_private_with_doc = False\nnapoleon_include_special_with_doc = False\nnapoleon_use_admonition_for_examples = False\nnapoleon_use_admonition_for_notes = False\nnapoleon_use_admonition_for_references = False\nnapoleon_use_ivar = False\nnapoleon_use_param = False\nnapoleon_use_rtype = False\nnapoleon_type_aliases = None\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 = []\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\nhtml_theme_options = {\n    'collapse_navigation': False, # set to false to prevent menu item collapse\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\nhtml_favicon = 'favicon.png'\n\n#html_logo = \"../logos/lightly_logo_crop.png\"\ndef setup(app):\n    app.add_css_file('css/my-styles.css')\n", "path": "docs/source/conf.py"}]}