prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Show pandas style Table of Contents on the left side in docs
  Right now our docs show a weird Table of Contents for only a section, rather than the entire doc. Can we fix it so it shows the Table of Contents of the entire docs, e.g. start from the top level?
  
  <img width="647" alt="Screen Shot 2019-04-23 at 4 40 38 PM" src="https://user-images.githubusercontent.com/323388/56622865-9351b600-65e6-11e9-98b3-7930660b1c93.png">
  
  
  
  </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 # 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 from databricks import koalas
  16 sys.path.insert(0, os.path.abspath('.'))
  17 
  18 
  19 # -- Project information -----------------------------------------------------
  20 
  21 project = 'Koalas'
  22 copyright = '2019, Databricks'
  23 author = 'The Koalas Team'
  24 
  25 # The full version, including alpha/beta/rc tags
  26 release = os.environ.get('RELEASE_VERSION', koalas.__version__)
  27 
  28 
  29 # -- General configuration ---------------------------------------------------
  30 
  31 # If your documentation needs a minimal Sphinx version, state it here.
  32 needs_sphinx = '1.2'
  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.viewcode',
  40     'numpydoc',  # handle NumPy documentation formatted docstrings. Needs to install
  41     'nbsphinx',  # Jupyter Notebook. Needs to install
  42 ]
  43 
  44 # Add any paths that contain templates here, relative to this directory.
  45 templates_path = ['_templates']
  46 
  47 # List of patterns, relative to source directory, that match files and
  48 # directories to ignore when looking for source files.
  49 # This pattern also affects html_static_path and html_extra_path.
  50 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  51 
  52 # The name of the Pygments (syntax highlighting) style to use.
  53 pygments_style = 'sphinx'
  54 
  55 # The master toctree document.
  56 master_doc = 'index'
  57 
  58 numpydoc_show_class_members = False
  59 
  60 # -- Options for auto output -------------------------------------------------
  61 
  62 autoclass_content = 'both'
  63 autosummary_generate = True
  64 
  65 
  66 # -- Options for HTML output -------------------------------------------------
  67 
  68 # The theme to use for HTML and HTML Help pages.  See the documentation for
  69 # a list of builtin themes.
  70 #
  71 html_theme = 'nature'
  72 
  73 # Add any paths that contain custom static files (such as style sheets) here,
  74 # relative to this directory. They are copied after the builtin static files,
  75 # so a file named "default.css" will overwrite the builtin "default.css".
  76 html_static_path = ['_static']
  77 
  78 # If false, no index is generated.
  79 html_use_index = False
  80 
  81 # If false, no module index is generated.
  82 html_domain_indices = False
  83 
  84 
  85 # -- Options for manual page output ---------------------------------------
  86 
  87 # One entry per manual page. List of tuples
  88 # (source start file, name, description, authors, manual section).
  89 man_pages = [
  90     ('index', 'databricks.koalas', u'databricks.koalas Documentation',
  91      [u'Author'], 1)
  92 ]
  93
  [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
  @@ -68,13 +68,16 @@
   # The theme to use for HTML and HTML Help pages.  See the documentation for
   # a list of builtin themes.
   #
  -html_theme = 'nature'
  +html_theme = 'nature_with_gtoc'
   
   # Add any paths that contain custom static files (such as style sheets) here,
   # relative to this directory. They are copied after the builtin static files,
   # so a file named "default.css" will overwrite the builtin "default.css".
   html_static_path = ['_static']
   
  +# Add any paths that contain custom themes here, relative to this directory.
  +html_theme_path = ['themes']
  +
   # If false, no index is generated.
   html_use_index = 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@@ -68,13 +68,16 @@\n # The theme to use for HTML and HTML Help pages.  See the documentation for\n # a list of builtin themes.\n #\n-html_theme = 'nature'\n+html_theme = 'nature_with_gtoc'\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\".\n html_static_path = ['_static']\n \n+# Add any paths that contain custom themes here, relative to this directory.\n+html_theme_path = ['themes']\n+\n # If false, no index is generated.\n html_use_index = False\n", "issue": "Show pandas style Table of Contents on the left side in docs\nRight now our docs show a weird Table of Contents for only a section, rather than the entire doc. Can we fix it so it shows the Table of Contents of the entire docs, e.g. start from the top level?\r\n\r\n<img width=\"647\" alt=\"Screen Shot 2019-04-23 at 4 40 38 PM\" src=\"https://user-images.githubusercontent.com/323388/56622865-9351b600-65e6-11e9-98b3-7930660b1c93.png\">\r\n\r\n\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\nfrom databricks import koalas\nsys.path.insert(0, os.path.abspath('.'))\n\n\n# -- Project information -----------------------------------------------------\n\nproject = 'Koalas'\ncopyright = '2019, Databricks'\nauthor = 'The Koalas Team'\n\n# The full version, including alpha/beta/rc tags\nrelease = os.environ.get('RELEASE_VERSION', koalas.__version__)\n\n\n# -- General configuration ---------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\nneeds_sphinx = '1.2'\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.ext.autodoc',\n    'sphinx.ext.viewcode',\n    'numpydoc',  # handle NumPy documentation formatted docstrings. Needs to install\n    'nbsphinx',  # Jupyter Notebook. Needs to install\n]\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\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# The master toctree document.\nmaster_doc = 'index'\n\nnumpydoc_show_class_members = False\n\n# -- Options for auto output -------------------------------------------------\n\nautoclass_content = 'both'\nautosummary_generate = True\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 = 'nature'\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# If false, no index is generated.\nhtml_use_index = False\n\n# If false, no module index is generated.\nhtml_domain_indices = False\n\n\n# -- Options for manual page output ---------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n    ('index', 'databricks.koalas', u'databricks.koalas Documentation',\n     [u'Author'], 1)\n]\n", "path": "docs/source/conf.py"}]}