We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix read the docs generation
We're using autodoc which requires an install of the dev environment. Read the docs does not support pipenv yet, so we should be able to fix when this PR is released: https://github.com/rtfd/readthedocs.org/pull/4783

For the time being, local generation works fine. 

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/conf.py`
Content:
```
1 #!/usr/bin/env python3
2 #
3 # grand-challenge.org documentation build configuration file, created by
4 # sphinx-quickstart on Fri Jan  5 16:19:37 2018.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14 
15 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #
19 import os
20 import sys
21 
22 sys.path.insert(0, os.path.abspath("../app"))
23 
24 os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings"
25 
26 import django
27 
28 django.setup()
29 
30 # -- General configuration ------------------------------------------------
31 
32 # If your documentation needs a minimal Sphinx version, state it here.
33 #
34 # needs_sphinx = '1.0'
35 
36 # Add any Sphinx extension module names here, as strings. They can be
37 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38 # ones.
39 extensions = [
40     "sphinx.ext.autodoc",
41     "sphinx.ext.doctest",
42     "sphinx.ext.todo",
43     "sphinx.ext.coverage",
44     "sphinx.ext.mathjax",
45     "sphinx.ext.viewcode",
46     "sphinx.ext.napoleon",
47     "sphinx_autodoc_typehints",
48 ]
49 
50 napoleon_google_docstring = False
51 napoleon_numpy_docstring = True
52 napoleon_use_rtype = False
53 
54 # Add any paths that contain templates here, relative to this directory.
55 templates_path = ["_templates"]
56 
57 # The suffix(es) of source filenames.
58 # You can specify multiple suffix as a list of string:
59 #
60 # source_suffix = ['.rst', '.md']
61 source_suffix = ".rst"
62 
63 # The master toctree document.
64 master_doc = "index"
65 
66 # General information about the project.
67 project = "grand-challenge.org"
68 copyright = "2018, James Meakin"
69 author = "James Meakin"
70 
71 # The version info for the project you're documenting, acts as replacement for
72 # |version| and |release|, also used in various other places throughout the
73 # built documents.
74 #
75 # The short X.Y version.
76 version = ""
77 # The full version, including alpha/beta/rc tags.
78 release = ""
79 
80 # The language for content autogenerated by Sphinx. Refer to documentation
81 # for a list of supported languages.
82 #
83 # This is also used if you do content translation via gettext catalogs.
84 # Usually you set "language" from the command line for these cases.
85 language = None
86 
87 # List of patterns, relative to source directory, that match files and
88 # directories to ignore when looking for source files.
89 # This patterns also effect to html_static_path and html_extra_path
90 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
91 
92 # The name of the Pygments (syntax highlighting) style to use.
93 pygments_style = "sphinx"
94 
95 # If true, `todo` and `todoList` produce output, else they produce nothing.
96 todo_include_todos = True
97 
98 
99 # -- Options for HTML output ----------------------------------------------
100 
101 # The theme to use for HTML and HTML Help pages.  See the documentation for
102 # a list of builtin themes.
103 #
104 html_theme = "alabaster"
105 
106 # Theme options are theme-specific and customize the look and feel of a theme
107 # further.  For a list of options available for each theme, see the
108 # documentation.
109 #
110 # html_theme_options = {}
111 
112 # Add any paths that contain custom static files (such as style sheets) here,
113 # relative to this directory. They are copied after the builtin static files,
114 # so a file named "default.css" will overwrite the builtin "default.css".
115 html_static_path = ["_static"]
116 
117 # Custom sidebar templates, must be a dictionary that maps document names
118 # to template names.
119 #
120 # This is required for the alabaster theme
121 # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
122 html_sidebars = {
123     "**": [
124         "relations.html",  # needs 'show_related': True theme option to display
125         "searchbox.html",
126     ]
127 }
128 
129 
130 # -- Options for HTMLHelp output ------------------------------------------
131 
132 # Output file base name for HTML help builder.
133 htmlhelp_basename = "grand-challenge.orgdoc"
134 
135 
136 # -- Options for LaTeX output ---------------------------------------------
137 
138 latex_elements = {
139     # The paper size ('letterpaper' or 'a4paper').
140     #
141     # 'papersize': 'letterpaper',
142     # The font size ('10pt', '11pt' or '12pt').
143     #
144     # 'pointsize': '10pt',
145     # Additional stuff for the LaTeX preamble.
146     #
147     # 'preamble': '',
148     # Latex figure (float) alignment
149     #
150     # 'figure_align': 'htbp',
151 }
152 
153 # Grouping the document tree into LaTeX files. List of tuples
154 # (source start file, target name, title,
155 #  author, documentclass [howto, manual, or own class]).
156 latex_documents = [
157     (
158         master_doc,
159         "grand-challenge.org.tex",
160         "grand-challenge.org Documentation",
161         "James Meakin",
162         "manual",
163     )
164 ]
165 
166 
167 # -- Options for manual page output ---------------------------------------
168 
169 # One entry per manual page. List of tuples
170 # (source start file, name, description, authors, manual section).
171 man_pages = [
172     (
173         master_doc,
174         "grand-challenge.org",
175         "grand-challenge.org Documentation",
176         [author],
177         1,
178     )
179 ]
180 
181 
182 # -- Options for Texinfo output -------------------------------------------
183 
184 # Grouping the document tree into Texinfo files. List of tuples
185 # (source start file, target name, title, author,
186 #  dir menu entry, description, category)
187 texinfo_documents = [
188     (
189         master_doc,
190         "grand-challenge.org",
191         "grand-challenge.org Documentation",
192         author,
193         "grand-challenge.org",
194         "One line description of project.",
195         "Miscellaneous",
196     )
197 ]
198 
199 rst_epilog = ".. |project_name| replace:: %s" % project
200
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -45,6 +45,7 @@
     "sphinx.ext.viewcode",
     "sphinx.ext.napoleon",
     "sphinx_autodoc_typehints",
+    "sphinx_rtd_theme",
 ]
 
 napoleon_google_docstring = False
@@ -101,7 +102,7 @@
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
-html_theme = "alabaster"
+html_theme = "sphinx_rtd_theme"
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -45,6 +45,7 @@\n     \"sphinx.ext.viewcode\",\n     \"sphinx.ext.napoleon\",\n     \"sphinx_autodoc_typehints\",\n+    \"sphinx_rtd_theme\",\n ]\n \n napoleon_google_docstring = False\n@@ -101,7 +102,7 @@\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 = \"alabaster\"\n+html_theme = \"sphinx_rtd_theme\"\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", "issue": "Fix read the docs generation\nWe're using autodoc which requires an install of the dev environment. Read the docs does not support pipenv yet, so we should be able to fix when this PR is released: https://github.com/rtfd/readthedocs.org/pull/4783\r\n\r\nFor the time being, local generation works fine. \n", "before_files": [{"content": "#!/usr/bin/env python3\n#\n# grand-challenge.org documentation build configuration file, created by\n# sphinx-quickstart on Fri Jan  5 16:19:37 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\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\n\nsys.path.insert(0, os.path.abspath(\"../app\"))\n\nos.environ[\"DJANGO_SETTINGS_MODULE\"] = \"config.settings\"\n\nimport django\n\ndjango.setup()\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\n# needs_sphinx = '1.0'\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.doctest\",\n    \"sphinx.ext.todo\",\n    \"sphinx.ext.coverage\",\n    \"sphinx.ext.mathjax\",\n    \"sphinx.ext.viewcode\",\n    \"sphinx.ext.napoleon\",\n    \"sphinx_autodoc_typehints\",\n]\n\nnapoleon_google_docstring = False\nnapoleon_numpy_docstring = True\nnapoleon_use_rtype = False\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = \".rst\"\n\n# The master toctree document.\nmaster_doc = \"index\"\n\n# General information about the project.\nproject = \"grand-challenge.org\"\ncopyright = \"2018, James Meakin\"\nauthor = \"James Meakin\"\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = \"\"\n# The full version, including alpha/beta/rc tags.\nrelease = \"\"\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = None\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to 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# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = 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 = \"alabaster\"\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#\n# html_theme_options = {}\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# Custom sidebar templates, must be a dictionary that maps document names\n# to template names.\n#\n# This is required for the alabaster theme\n# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars\nhtml_sidebars = {\n    \"**\": [\n        \"relations.html\",  # needs 'show_related': True theme option to display\n        \"searchbox.html\",\n    ]\n}\n\n\n# -- Options for HTMLHelp output ------------------------------------------\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = \"grand-challenge.orgdoc\"\n\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #\n    # 'papersize': 'letterpaper',\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n    # Latex figure (float) alignment\n    #\n    # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n#  author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n    (\n        master_doc,\n        \"grand-challenge.org.tex\",\n        \"grand-challenge.org Documentation\",\n        \"James Meakin\",\n        \"manual\",\n    )\n]\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    (\n        master_doc,\n        \"grand-challenge.org\",\n        \"grand-challenge.org Documentation\",\n        [author],\n        1,\n    )\n]\n\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n    (\n        master_doc,\n        \"grand-challenge.org\",\n        \"grand-challenge.org Documentation\",\n        author,\n        \"grand-challenge.org\",\n        \"One line description of project.\",\n        \"Miscellaneous\",\n    )\n]\n\nrst_epilog = \".. |project_name| replace:: %s\" % project\n", "path": "docs/conf.py"}], "after_files": [{"content": "#!/usr/bin/env python3\n#\n# grand-challenge.org documentation build configuration file, created by\n# sphinx-quickstart on Fri Jan  5 16:19:37 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\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\n\nsys.path.insert(0, os.path.abspath(\"../app\"))\n\nos.environ[\"DJANGO_SETTINGS_MODULE\"] = \"config.settings\"\n\nimport django\n\ndjango.setup()\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\n# needs_sphinx = '1.0'\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.doctest\",\n    \"sphinx.ext.todo\",\n    \"sphinx.ext.coverage\",\n    \"sphinx.ext.mathjax\",\n    \"sphinx.ext.viewcode\",\n    \"sphinx.ext.napoleon\",\n    \"sphinx_autodoc_typehints\",\n    \"sphinx_rtd_theme\",\n]\n\nnapoleon_google_docstring = False\nnapoleon_numpy_docstring = True\nnapoleon_use_rtype = False\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = \".rst\"\n\n# The master toctree document.\nmaster_doc = \"index\"\n\n# General information about the project.\nproject = \"grand-challenge.org\"\ncopyright = \"2018, James Meakin\"\nauthor = \"James Meakin\"\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\nversion = \"\"\n# The full version, including alpha/beta/rc tags.\nrelease = \"\"\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = None\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to 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# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = 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 = \"sphinx_rtd_theme\"\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#\n# html_theme_options = {}\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# Custom sidebar templates, must be a dictionary that maps document names\n# to template names.\n#\n# This is required for the alabaster theme\n# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars\nhtml_sidebars = {\n    \"**\": [\n        \"relations.html\",  # needs 'show_related': True theme option to display\n        \"searchbox.html\",\n    ]\n}\n\n\n# -- Options for HTMLHelp output ------------------------------------------\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = \"grand-challenge.orgdoc\"\n\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #\n    # 'papersize': 'letterpaper',\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n    # Latex figure (float) alignment\n    #\n    # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n#  author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n    (\n        master_doc,\n        \"grand-challenge.org.tex\",\n        \"grand-challenge.org Documentation\",\n        \"James Meakin\",\n        \"manual\",\n    )\n]\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    (\n        master_doc,\n        \"grand-challenge.org\",\n        \"grand-challenge.org Documentation\",\n        [author],\n        1,\n    )\n]\n\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n    (\n        master_doc,\n        \"grand-challenge.org\",\n        \"grand-challenge.org Documentation\",\n        author,\n        \"grand-challenge.org\",\n        \"One line description of project.\",\n        \"Miscellaneous\",\n    )\n]\n\nrst_epilog = \".. |project_name| replace:: %s\" % project\n", "path": "docs/conf.py"}]}