prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  ghpage: use the Furo theme
  https://pradyunsg.me/furo/. It’s pretty and more modern. Used by black https://black.readthedocs.io/en/stable/#
  
  </issue>
  <code>
  [start of docs/conf.py]
  1 # Configuration file for the Sphinx documentation builder.
  2 # To run the documentation: python -m sphinx docs dist/html
  3 
  4 import os
  5 import re
  6 import sys
  7 
  8 import sphinx_gallery.sorting
  9 
  10 import onnxscript
  11 
  12 # -- Project information -----------------------------------------------------
  13 
  14 project = "onnx-script"
  15 copyright = "2022, onnx"
  16 author = "onnx"
  17 version = onnxscript.__version__
  18 release = version
  19 
  20 # -- General configuration ---------------------------------------------------
  21 
  22 extensions = [
  23     "sphinx.ext.intersphinx",
  24     "sphinx.ext.imgmath",
  25     "sphinx.ext.ifconfig",
  26     "sphinx.ext.viewcode",
  27     "sphinx.ext.autodoc",
  28     "sphinx.ext.githubpages",
  29     "sphinx_gallery.gen_gallery",
  30     "sphinx.ext.autodoc",
  31     "sphinx.ext.graphviz",
  32     "sphinx.ext.doctest",
  33     "sphinx.ext.napoleon",
  34 ]
  35 
  36 templates_path = ["_templates"]
  37 source_suffix = [".rst"]
  38 
  39 master_doc = "index"
  40 language = "en"
  41 exclude_patterns = []
  42 pygments_style = "default"
  43 
  44 # -- Options for HTML output -------------------------------------------------
  45 
  46 html_static_path = ["_static"]
  47 html_theme = "pydata_sphinx_theme"
  48 html_theme_path = ["_static"]
  49 html_theme_options = {
  50     "logo": {
  51         "image_light": "logo-light.png",
  52         "image_dark": "logo-dark.png",
  53     }
  54 }
  55 html_css_files = ["css/custom.css"]
  56 
  57 # -- Options for graphviz ----------------------------------------------------
  58 
  59 graphviz_output_format = "svg"
  60 
  61 # -- Options for intersphinx extension ---------------------------------------
  62 
  63 # Example configuration for intersphinx: refer to the Python standard library.
  64 intersphinx_mapping = {"https://docs.python.org/": None}
  65 
  66 # -- Options for Sphinx Gallery ----------------------------------------------
  67 
  68 intersphinx_mapping = {
  69     "python": (f"https://docs.python.org/{sys.version_info.major}", None),
  70     "matplotlib": ("https://matplotlib.org/", None),
  71     "numpy": ("https://docs.scipy.org/doc/numpy/", None),
  72     "onnxruntime": ("https://onnxruntime.ai/docs/api/python/", None),
  73 }
  74 
  75 sphinx_gallery_conf = {
  76     "examples_dirs": ["examples"],
  77     "gallery_dirs": ["auto_examples"],
  78     "capture_repr": ("_repr_html_", "__repr__"),
  79     "ignore_repr_types": r"matplotlib.text|matplotlib.axes",
  80     "filename_pattern": f"{re.escape(os.sep)}[0-9]*_?plot_",
  81     "within_subsection_order": sphinx_gallery.sorting.FileNameSortKey,
  82 }
  83
  [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
  @@ -12,7 +12,7 @@
   # -- Project information -----------------------------------------------------
   
   project = "onnx-script"
  -copyright = "2022, onnx"
  +copyright = "2023, onnx"
   author = "onnx"
   version = onnxscript.__version__
   release = version
  @@ -31,10 +31,11 @@
       "sphinx.ext.graphviz",
       "sphinx.ext.doctest",
       "sphinx.ext.napoleon",
  +    "sphinx_copybutton",
   ]
   
   templates_path = ["_templates"]
  -source_suffix = [".rst"]
  +source_suffix = [".rst", ".md"]
   
   master_doc = "index"
   language = "en"
  @@ -44,13 +45,12 @@
   # -- Options for HTML output -------------------------------------------------
   
   html_static_path = ["_static"]
  -html_theme = "pydata_sphinx_theme"
  +html_theme = "furo"
   html_theme_path = ["_static"]
   html_theme_options = {
  -    "logo": {
  -        "image_light": "logo-light.png",
  -        "image_dark": "logo-dark.png",
  -    }
  +    "light_logo": "logo-light.png",
  +    "dark_logo": "logo-dark.png",
  +    "sidebar_hide_name": True,
   }
   html_css_files = ["css/custom.css"]
   
  @@ -60,11 +60,6 @@
   
   # -- Options for intersphinx extension ---------------------------------------
   
  -# Example configuration for intersphinx: refer to the Python standard library.
  -intersphinx_mapping = {"https://docs.python.org/": None}
  -
  -# -- Options for Sphinx Gallery ----------------------------------------------
  -
   intersphinx_mapping = {
       "python": (f"https://docs.python.org/{sys.version_info.major}", None),
       "matplotlib": ("https://matplotlib.org/", None),
  @@ -72,6 +67,8 @@
       "onnxruntime": ("https://onnxruntime.ai/docs/api/python/", None),
   }
   
  +# -- Options for Sphinx Gallery ----------------------------------------------
  +
   sphinx_gallery_conf = {
       "examples_dirs": ["examples"],
       "gallery_dirs": ["auto_examples"],
  
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@@ -12,7 +12,7 @@\n # -- Project information -----------------------------------------------------\n \n project = \"onnx-script\"\n-copyright = \"2022, onnx\"\n+copyright = \"2023, onnx\"\n author = \"onnx\"\n version = onnxscript.__version__\n release = version\n@@ -31,10 +31,11 @@\n     \"sphinx.ext.graphviz\",\n     \"sphinx.ext.doctest\",\n     \"sphinx.ext.napoleon\",\n+    \"sphinx_copybutton\",\n ]\n \n templates_path = [\"_templates\"]\n-source_suffix = [\".rst\"]\n+source_suffix = [\".rst\", \".md\"]\n \n master_doc = \"index\"\n language = \"en\"\n@@ -44,13 +45,12 @@\n # -- Options for HTML output -------------------------------------------------\n \n html_static_path = [\"_static\"]\n-html_theme = \"pydata_sphinx_theme\"\n+html_theme = \"furo\"\n html_theme_path = [\"_static\"]\n html_theme_options = {\n-    \"logo\": {\n-        \"image_light\": \"logo-light.png\",\n-        \"image_dark\": \"logo-dark.png\",\n-    }\n+    \"light_logo\": \"logo-light.png\",\n+    \"dark_logo\": \"logo-dark.png\",\n+    \"sidebar_hide_name\": True,\n }\n html_css_files = [\"css/custom.css\"]\n \n@@ -60,11 +60,6 @@\n \n # -- Options for intersphinx extension ---------------------------------------\n \n-# Example configuration for intersphinx: refer to the Python standard library.\n-intersphinx_mapping = {\"https://docs.python.org/\": None}\n-\n-# -- Options for Sphinx Gallery ----------------------------------------------\n-\n intersphinx_mapping = {\n     \"python\": (f\"https://docs.python.org/{sys.version_info.major}\", None),\n     \"matplotlib\": (\"https://matplotlib.org/\", None),\n@@ -72,6 +67,8 @@\n     \"onnxruntime\": (\"https://onnxruntime.ai/docs/api/python/\", None),\n }\n \n+# -- Options for Sphinx Gallery ----------------------------------------------\n+\n sphinx_gallery_conf = {\n     \"examples_dirs\": [\"examples\"],\n     \"gallery_dirs\": [\"auto_examples\"],\n", "issue": "ghpage: use the Furo theme\nhttps://pradyunsg.me/furo/. It\u2019s pretty and more modern. Used by black https://black.readthedocs.io/en/stable/#\n", "before_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n# To run the documentation: python -m sphinx docs dist/html\n\nimport os\nimport re\nimport sys\n\nimport sphinx_gallery.sorting\n\nimport onnxscript\n\n# -- Project information -----------------------------------------------------\n\nproject = \"onnx-script\"\ncopyright = \"2022, onnx\"\nauthor = \"onnx\"\nversion = onnxscript.__version__\nrelease = version\n\n# -- General configuration ---------------------------------------------------\n\nextensions = [\n    \"sphinx.ext.intersphinx\",\n    \"sphinx.ext.imgmath\",\n    \"sphinx.ext.ifconfig\",\n    \"sphinx.ext.viewcode\",\n    \"sphinx.ext.autodoc\",\n    \"sphinx.ext.githubpages\",\n    \"sphinx_gallery.gen_gallery\",\n    \"sphinx.ext.autodoc\",\n    \"sphinx.ext.graphviz\",\n    \"sphinx.ext.doctest\",\n    \"sphinx.ext.napoleon\",\n]\n\ntemplates_path = [\"_templates\"]\nsource_suffix = [\".rst\"]\n\nmaster_doc = \"index\"\nlanguage = \"en\"\nexclude_patterns = []\npygments_style = \"default\"\n\n# -- Options for HTML output -------------------------------------------------\n\nhtml_static_path = [\"_static\"]\nhtml_theme = \"pydata_sphinx_theme\"\nhtml_theme_path = [\"_static\"]\nhtml_theme_options = {\n    \"logo\": {\n        \"image_light\": \"logo-light.png\",\n        \"image_dark\": \"logo-dark.png\",\n    }\n}\nhtml_css_files = [\"css/custom.css\"]\n\n# -- Options for graphviz ----------------------------------------------------\n\ngraphviz_output_format = \"svg\"\n\n# -- Options for intersphinx extension ---------------------------------------\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\"https://docs.python.org/\": None}\n\n# -- Options for Sphinx Gallery ----------------------------------------------\n\nintersphinx_mapping = {\n    \"python\": (f\"https://docs.python.org/{sys.version_info.major}\", None),\n    \"matplotlib\": (\"https://matplotlib.org/\", None),\n    \"numpy\": (\"https://docs.scipy.org/doc/numpy/\", None),\n    \"onnxruntime\": (\"https://onnxruntime.ai/docs/api/python/\", None),\n}\n\nsphinx_gallery_conf = {\n    \"examples_dirs\": [\"examples\"],\n    \"gallery_dirs\": [\"auto_examples\"],\n    \"capture_repr\": (\"_repr_html_\", \"__repr__\"),\n    \"ignore_repr_types\": r\"matplotlib.text|matplotlib.axes\",\n    \"filename_pattern\": f\"{re.escape(os.sep)}[0-9]*_?plot_\",\n    \"within_subsection_order\": sphinx_gallery.sorting.FileNameSortKey,\n}\n", "path": "docs/conf.py"}]}