We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Sphinx code autodocs are broken
The build environment at ReadTheDocs.org has changed again, and the python auto-generated docs are blank because `python-ldap` can't be built:

``` console
running build_ext
building '_ldap' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/Modules
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.19 -IModules -I/opt/openldap-RE24/include -I/usr/include/sasl -I/usr/include -I/usr/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o
In file included from Modules/LDAPObject.c:9:0:
Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
 #include "lber.h"
                  ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
```

I don't see any way to do `apt-get install libldap2-dev` or the equivalent there. I'll post an issue at their GitHub project.

_Update:_ see rtfd/readthedocs.org#1363


--- 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 # -*- coding: utf-8 -*-
2 #
3 # deis documentation build configuration file, created by
4 # sphinx-quickstart on Fri Jul 26 12:12:00 2013.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13 
14 import os
15 import sys
16 
17 # If extensions (or modules to document with autodoc) are in another directory,
18 # add these directories to sys.path here. If the directory is relative to the
19 # documentation root, use os.path.abspath to make it absolute, like shown here.
20 
21 # Some hackery here to get deis.py to be importable as client.deis
22 open(os.path.join('..', '__init__.py'), 'a')
23 sys.path.insert(0, os.path.abspath(os.path.join('..')))
24 sys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))
25 # set up Django
26 os.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'
27 os.environ['DATABASE_ENGINE'] = 'sqlite3'
28 os.environ['DATABASE_NAME'] = 'dummy.sqlite3'
29 from django.conf import settings  # noqa
30 
31 # -- General configuration -----------------------------------------------------
32 
33 # If your documentation needs a minimal Sphinx version, state it here.
34 #needs_sphinx = '1.0'
35 
36 # Add any Sphinx extension module names here, as strings. They can be extensions
37 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
38 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',
39               'sphinx.ext.viewcode']
40 
41 # default flags for auto-generated python code documetation
42 autodoc_default_flags = ['members', 'undoc-members']
43 
44 # Add any paths that contain templates here, relative to this directory.
45 templates_path = ['_templates']
46 
47 # The suffix of source filenames.
48 source_suffix = '.rst'
49 
50 # The encoding of source files.
51 #source_encoding = 'utf-8-sig'
52 
53 # The master toctree document.
54 master_doc = 'toctree'
55 
56 # General information about the project.
57 project = u'deis'
58 copyright = u'2013, 2014 Engine Yard, Inc.'
59 
60 # The version info for the project you're documenting, acts as replacement for
61 # |version| and |release|, also used in various other places throughout the
62 # built documents.
63 #
64 from deis import __version__
65 
66 # The short X.Y version.
67 version = __version__.rsplit('.', 1)[0]
68 # The full version, including alpha/beta/rc tags.
69 release = __version__
70 
71 # The language for content autogenerated by Sphinx. Refer to documentation
72 # for a list of supported languages.
73 #language = None
74 
75 # There are two options for replacing |today|: either, you set today to some
76 # non-false value, then it is used:
77 #today = ''
78 # Else, today_fmt is used as the format for a strftime call.
79 #today_fmt = '%B %d, %Y'
80 
81 # List of patterns, relative to source directory, that match files and
82 # directories to ignore when looking for source files.
83 exclude_patterns = ['_build', 'venv', '**/_*.rst']
84 
85 # The reST default role (used for this markup: `text`) to use for all documents.
86 #default_role = None
87 
88 # If true, '()' will be appended to :func: etc. cross-reference text.
89 #add_function_parentheses = True
90 
91 # If true, the current module name will be prepended to all description
92 # unit titles (such as .. function::).
93 #add_module_names = True
94 
95 # If true, sectionauthor and moduleauthor directives will be shown in the
96 # output. They are ignored by default.
97 #show_authors = False
98 
99 # The name of the Pygments (syntax highlighting) style to use.
100 pygments_style = 'sphinx'
101 
102 # A list of ignored prefixes for module index sorting.
103 #modindex_common_prefix = []
104 
105 # If true, keep warnings as "system message" paragraphs in the built documents.
106 #keep_warnings = False
107 
108 
109 # -- Options for HTML output ---------------------------------------------------
110 
111 # The theme to use for HTML and HTML Help pages.  See the documentation for
112 # a list of builtin themes.
113 html_theme = 'deis'
114 
115 # Theme options are theme-specific and customize the look and feel of a theme
116 # further.  For a list of options available for each theme, see the
117 # documentation.
118 #html_theme_options = {}
119 
120 # Add any paths that contain custom themes here, relative to this directory.
121 html_theme_path = ['theme']
122 
123 # The name for this set of Sphinx documents.  If None, it defaults to
124 # "<project> v<release> documentation".
125 #html_title = None
126 
127 # A shorter title for the navigation bar.  Default is the same as html_title.
128 #html_short_title = None
129 
130 # The name of an image file (relative to this directory) to place at the top
131 # of the sidebar.
132 #html_logo = None
133 
134 # The name of an image file (within the static path) to use as favicon of the
135 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
136 # pixels large.
137 #html_favicon = None
138 
139 # Add any paths that contain custom static files (such as style sheets) here,
140 # relative to this directory. They are copied after the builtin static files,
141 # so a file named "default.css" will overwrite the builtin "default.css".
142 html_static_path = ['../controller/web/static']
143 
144 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
145 # using the given strftime format.
146 #html_last_updated_fmt = '%b %d, %Y'
147 
148 # If true, SmartyPants will be used to convert quotes and dashes to
149 # typographically correct entities.
150 html_use_smartypants = True
151 
152 # html_add_permalinks = '¶'
153 
154 # Custom sidebar templates, maps document names to template names.
155 #html_sidebars = {}
156 
157 # Additional templates that should be rendered to pages, maps page names to
158 # template names.
159 #html_additional_pages = {}
160 
161 # If false, no module index is generated.
162 #html_domain_indices = True
163 
164 # If false, no index is generated.
165 #html_use_index = True
166 
167 # If true, the index is split into individual pages for each letter.
168 #html_split_index = False
169 
170 # If true, links to the reST sources are added to the pages.
171 #html_show_sourcelink = True
172 
173 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
174 #html_show_sphinx = True
175 
176 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
177 #html_show_copyright = True
178 
179 # If true, an OpenSearch description file will be output, and all pages will
180 # contain a <link> tag referring to it.  The value of this option must be the
181 # base URL from which the finished HTML is served.
182 #html_use_opensearch = ''
183 
184 # This is the file name suffix for HTML files (e.g. ".xhtml").
185 #html_file_suffix = None
186 
187 # Output file base name for HTML help builder.
188 htmlhelp_basename = 'deisdoc'
189 
190 
191 # -- Options for LaTeX output --------------------------------------------------
192 
193 latex_elements = {
194     # The paper size ('letterpaper' or 'a4paper').
195     #'papersize': 'letterpaper',
196 
197     # The font size ('10pt', '11pt' or '12pt').
198     #'pointsize': '10pt',
199 
200     # Additional stuff for the LaTeX preamble.
201     #'preamble': '',
202 }
203 
204 # Grouping the document tree into LaTeX files. List of tuples
205 # (source start file, target name, title, author, documentclass [howto/manual]).
206 latex_documents = [
207     ('index', 'deis.tex', u'deis Documentation',
208      u'Author', 'manual'),
209 ]
210 
211 # The name of an image file (relative to this directory) to place at the top of
212 # the title page.
213 #latex_logo = None
214 
215 # For "manual" documents, if this is true, then toplevel headings are parts,
216 # not chapters.
217 #latex_use_parts = False
218 
219 # If true, show page references after internal links.
220 #latex_show_pagerefs = False
221 
222 # If true, show URL addresses after external links.
223 #latex_show_urls = False
224 
225 # Documents to append as an appendix to all manuals.
226 #latex_appendices = []
227 
228 # If false, no module index is generated.
229 #latex_domain_indices = True
230 
231 
232 # -- Options for manual page output --------------------------------------------
233 
234 # One entry per manual page. List of tuples
235 # (source start file, name, description, authors, manual section).
236 man_pages = [
237     ('index', 'deis', u'deis Documentation',
238      [u'Author'], 1)
239 ]
240 
241 # If true, show URL addresses after external links.
242 #man_show_urls = False
243 
244 
245 # -- Options for Texinfo output ------------------------------------------------
246 
247 # Grouping the document tree into Texinfo files. List of tuples
248 # (source start file, target name, title, author,
249 #  dir menu entry, description, category)
250 texinfo_documents = [
251     ('index', 'deis', u'deis Documentation',
252      u'Author', 'deis', 'One line description of project.',
253      'Miscellaneous'),
254 ]
255 
256 # Documents to append as an appendix to all manuals.
257 #texinfo_appendices = []
258 
259 # If false, no module index is generated.
260 #texinfo_domain_indices = True
261 
262 # How to display URL addresses: 'footnote', 'no', or 'inline'.
263 #texinfo_show_urls = 'footnote'
264 
265 # If true, do not generate a @detailmenu in the "Top" node's menu.
266 #texinfo_no_detailmenu = False
267 
268 
269 # -- Options for Epub output ---------------------------------------------------
270 
271 # Bibliographic Dublin Core info.
272 epub_title = u'deis'
273 epub_author = u'Engine Yard, Inc.'
274 epub_publisher = u'Engine Yard, Inc.'
275 epub_copyright = u'2013, Engine Yard, Inc.'
276 
277 # The language of the text. It defaults to the language option
278 # or en if the language is not set.
279 #epub_language = ''
280 
281 # The scheme of the identifier. Typical schemes are ISBN or URL.
282 #epub_scheme = ''
283 
284 # The unique identifier of the text. This can be a ISBN number
285 # or the project homepage.
286 #epub_identifier = ''
287 
288 # A unique identification for the text.
289 #epub_uid = ''
290 
291 # A tuple containing the cover image and cover page html template filenames.
292 #epub_cover = ()
293 
294 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
295 #epub_guide = ()
296 
297 # HTML files that should be inserted before the pages created by sphinx.
298 # The format is a list of tuples containing the path and title.
299 #epub_pre_files = []
300 
301 # HTML files shat should be inserted after the pages created by sphinx.
302 # The format is a list of tuples containing the path and title.
303 #epub_post_files = []
304 
305 # A list of files that should not be packed into the epub file.
306 #epub_exclude_files = []
307 
308 # The depth of the table of contents in toc.ncx.
309 #epub_tocdepth = 3
310 
311 # Allow duplicate toc entries.
312 #epub_tocdup = True
313 
314 # Fix unsupported image types using the PIL.
315 #epub_fix_images = False
316 
317 # Scale large images.
318 #epub_max_image_width = 0
319 
320 # If 'no', URL addresses will not be shown.
321 #epub_show_urls = 'inline'
322 
323 # If false, no index is generated.
324 #epub_use_index = True
325
```
--- 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
@@ -14,6 +14,17 @@
 import os
 import sys
 
+from mock import MagicMock
+
+# Mock out modules that can't be installed at ReadTheDocs.org.
+class MockModule(MagicMock):
+    @classmethod
+    def __getattr__(cls, name):
+            return MockModule()
+
+MOCK_MODULES = ['django_auth_ldap', 'django_auth_ldap.config', 'django_auth_ldap.models', 'ldap']
+sys.modules.update((mod_name, MockModule()) for mod_name in MOCK_MODULES)
+
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -14,6 +14,17 @@\n import os\n import sys\n \n+from mock import MagicMock\n+\n+# Mock out modules that can't be installed at ReadTheDocs.org.\n+class MockModule(MagicMock):\n+    @classmethod\n+    def __getattr__(cls, name):\n+            return MockModule()\n+\n+MOCK_MODULES = ['django_auth_ldap', 'django_auth_ldap.config', 'django_auth_ldap.models', 'ldap']\n+sys.modules.update((mod_name, MockModule()) for mod_name in MOCK_MODULES)\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", "issue": "Sphinx code autodocs are broken\nThe build environment at ReadTheDocs.org has changed again, and the python auto-generated docs are blank because `python-ldap` can't be built:\n\n``` console\nrunning build_ext\nbuilding '_ldap' extension\ncreating build/temp.linux-x86_64-2.7\ncreating build/temp.linux-x86_64-2.7/Modules\nx86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.19 -IModules -I/opt/openldap-RE24/include -I/usr/include/sasl -I/usr/include -I/usr/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o\nIn file included from Modules/LDAPObject.c:9:0:\nModules/errors.h:8:18: fatal error: lber.h: No such file or directory\n #include \"lber.h\"\n                  ^\ncompilation terminated.\nerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n----------------------------------------\n```\n\nI don't see any way to do `apt-get install libldap2-dev` or the equivalent there. I'll post an issue at their GitHub project.\n\n_Update:_ see rtfd/readthedocs.org#1363\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its 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\nimport os\nimport sys\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\n# Some hackery here to get deis.py to be importable as client.deis\nopen(os.path.join('..', '__init__.py'), 'a')\nsys.path.insert(0, os.path.abspath(os.path.join('..')))\nsys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))\n# set up Django\nos.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'\nos.environ['DATABASE_ENGINE'] = 'sqlite3'\nos.environ['DATABASE_NAME'] = 'dummy.sqlite3'\nfrom django.conf import settings  # noqa\n\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',\n              'sphinx.ext.viewcode']\n\n# default flags for auto-generated python code documetation\nautodoc_default_flags = ['members', 'undoc-members']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'toctree'\n\n# General information about the project.\nproject = u'deis'\ncopyright = u'2013, 2014 Engine Yard, Inc.'\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#\nfrom deis import __version__\n\n# The short X.Y version.\nversion = __version__.rsplit('.', 1)[0]\n# The full version, including alpha/beta/rc tags.\nrelease = __version__\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build', 'venv', '**/_*.rst']\n\n# The reST default role (used for this markup: `text`) to use for all documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n# If true, keep warnings as \"system message\" paragraphs in the built documents.\n#keep_warnings = False\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.\nhtml_theme = 'deis'\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#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\nhtml_theme_path = ['theme']\n\n# The name for this set of Sphinx documents.  If None, it defaults to\n# \"<project> v<release> documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar.  Default is the same as html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\n#html_logo = None\n\n# The name of an image file (within the static path) to use as favicon of the\n# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\n#html_favicon = None\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 = ['../controller/web/static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,\n# using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\nhtml_use_smartypants = True\n\n# html_add_permalinks = '\u00b6'\n\n# Custom sidebar templates, maps document names to template names.\n#html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\n#html_domain_indices = True\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\n#html_show_sourcelink = True\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\n#html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a <link> tag referring to it.  The value of this option must be the\n# base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'deisdoc'\n\n\n# -- Options for LaTeX output --------------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #'papersize': 'letterpaper',\n\n    # The font size ('10pt', '11pt' or '12pt').\n    #'pointsize': '10pt',\n\n    # Additional stuff for the LaTeX preamble.\n    #'preamble': '',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass [howto/manual]).\nlatex_documents = [\n    ('index', 'deis.tex', u'deis Documentation',\n     u'Author', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\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', 'deis', u'deis Documentation',\n     [u'Author'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\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    ('index', 'deis', u'deis Documentation',\n     u'Author', 'deis', 'One line description of project.',\n     'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#texinfo_appendices = []\n\n# If false, no module index is generated.\n#texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#texinfo_show_urls = 'footnote'\n\n# If true, do not generate a @detailmenu in the \"Top\" node's menu.\n#texinfo_no_detailmenu = False\n\n\n# -- Options for Epub output ---------------------------------------------------\n\n# Bibliographic Dublin Core info.\nepub_title = u'deis'\nepub_author = u'Engine Yard, Inc.'\nepub_publisher = u'Engine Yard, Inc.'\nepub_copyright = u'2013, Engine Yard, Inc.'\n\n# The language of the text. It defaults to the language option\n# or en if the language is not set.\n#epub_language = ''\n\n# The scheme of the identifier. Typical schemes are ISBN or URL.\n#epub_scheme = ''\n\n# The unique identifier of the text. This can be a ISBN number\n# or the project homepage.\n#epub_identifier = ''\n\n# A unique identification for the text.\n#epub_uid = ''\n\n# A tuple containing the cover image and cover page html template filenames.\n#epub_cover = ()\n\n# A sequence of (type, uri, title) tuples for the guide element of content.opf.\n#epub_guide = ()\n\n# HTML files that should be inserted before the pages created by sphinx.\n# The format is a list of tuples containing the path and title.\n#epub_pre_files = []\n\n# HTML files shat should be inserted after the pages created by sphinx.\n# The format is a list of tuples containing the path and title.\n#epub_post_files = []\n\n# A list of files that should not be packed into the epub file.\n#epub_exclude_files = []\n\n# The depth of the table of contents in toc.ncx.\n#epub_tocdepth = 3\n\n# Allow duplicate toc entries.\n#epub_tocdup = True\n\n# Fix unsupported image types using the PIL.\n#epub_fix_images = False\n\n# Scale large images.\n#epub_max_image_width = 0\n\n# If 'no', URL addresses will not be shown.\n#epub_show_urls = 'inline'\n\n# If false, no index is generated.\n#epub_use_index = True\n", "path": "docs/conf.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# deis documentation build configuration file, created by\n# sphinx-quickstart on Fri Jul 26 12:12:00 2013.\n#\n# This file is execfile()d with the current directory set to its 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\nimport os\nimport sys\n\nfrom mock import MagicMock\n\n# Mock out modules that can't be installed at ReadTheDocs.org.\nclass MockModule(MagicMock):\n    @classmethod\n    def __getattr__(cls, name):\n            return MockModule()\n\nMOCK_MODULES = ['django_auth_ldap', 'django_auth_ldap.config', 'django_auth_ldap.models', 'ldap']\nsys.modules.update((mod_name, MockModule()) for mod_name in MOCK_MODULES)\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\n# Some hackery here to get deis.py to be importable as client.deis\nopen(os.path.join('..', '__init__.py'), 'a')\nsys.path.insert(0, os.path.abspath(os.path.join('..')))\nsys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))\n# set up Django\nos.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'\nos.environ['DATABASE_ENGINE'] = 'sqlite3'\nos.environ['DATABASE_NAME'] = 'dummy.sqlite3'\nfrom django.conf import settings  # noqa\n\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be extensions\n# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',\n              'sphinx.ext.viewcode']\n\n# default flags for auto-generated python code documetation\nautodoc_default_flags = ['members', 'undoc-members']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'toctree'\n\n# General information about the project.\nproject = u'deis'\ncopyright = u'2013, 2014 Engine Yard, Inc.'\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#\nfrom deis import __version__\n\n# The short X.Y version.\nversion = __version__.rsplit('.', 1)[0]\n# The full version, including alpha/beta/rc tags.\nrelease = __version__\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to some\n# non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build', 'venv', '**/_*.rst']\n\n# The reST default role (used for this markup: `text`) to use for all documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n# If true, keep warnings as \"system message\" paragraphs in the built documents.\n#keep_warnings = False\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.\nhtml_theme = 'deis'\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#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\nhtml_theme_path = ['theme']\n\n# The name for this set of Sphinx documents.  If None, it defaults to\n# \"<project> v<release> documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar.  Default is the same as html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the top\n# of the sidebar.\n#html_logo = None\n\n# The name of an image file (within the static path) to use as favicon of the\n# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32\n# pixels large.\n#html_favicon = None\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 = ['../controller/web/static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,\n# using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\nhtml_use_smartypants = True\n\n# html_add_permalinks = '\u00b6'\n\n# Custom sidebar templates, maps document names to template names.\n#html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names to\n# template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\n#html_domain_indices = True\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\n#html_show_sourcelink = True\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer. Default is True.\n#html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer. Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages will\n# contain a <link> tag referring to it.  The value of this option must be the\n# base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'deisdoc'\n\n\n# -- Options for LaTeX output --------------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #'papersize': 'letterpaper',\n\n    # The font size ('10pt', '11pt' or '12pt').\n    #'pointsize': '10pt',\n\n    # Additional stuff for the LaTeX preamble.\n    #'preamble': '',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass [howto/manual]).\nlatex_documents = [\n    ('index', 'deis.tex', u'deis Documentation',\n     u'Author', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at the top of\n# the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings are parts,\n# not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\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', 'deis', u'deis Documentation',\n     [u'Author'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\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    ('index', 'deis', u'deis Documentation',\n     u'Author', 'deis', 'One line description of project.',\n     'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#texinfo_appendices = []\n\n# If false, no module index is generated.\n#texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#texinfo_show_urls = 'footnote'\n\n# If true, do not generate a @detailmenu in the \"Top\" node's menu.\n#texinfo_no_detailmenu = False\n\n\n# -- Options for Epub output ---------------------------------------------------\n\n# Bibliographic Dublin Core info.\nepub_title = u'deis'\nepub_author = u'Engine Yard, Inc.'\nepub_publisher = u'Engine Yard, Inc.'\nepub_copyright = u'2013, Engine Yard, Inc.'\n\n# The language of the text. It defaults to the language option\n# or en if the language is not set.\n#epub_language = ''\n\n# The scheme of the identifier. Typical schemes are ISBN or URL.\n#epub_scheme = ''\n\n# The unique identifier of the text. This can be a ISBN number\n# or the project homepage.\n#epub_identifier = ''\n\n# A unique identification for the text.\n#epub_uid = ''\n\n# A tuple containing the cover image and cover page html template filenames.\n#epub_cover = ()\n\n# A sequence of (type, uri, title) tuples for the guide element of content.opf.\n#epub_guide = ()\n\n# HTML files that should be inserted before the pages created by sphinx.\n# The format is a list of tuples containing the path and title.\n#epub_pre_files = []\n\n# HTML files shat should be inserted after the pages created by sphinx.\n# The format is a list of tuples containing the path and title.\n#epub_post_files = []\n\n# A list of files that should not be packed into the epub file.\n#epub_exclude_files = []\n\n# The depth of the table of contents in toc.ncx.\n#epub_tocdepth = 3\n\n# Allow duplicate toc entries.\n#epub_tocdup = True\n\n# Fix unsupported image types using the PIL.\n#epub_fix_images = False\n\n# Scale large images.\n#epub_max_image_width = 0\n\n# If 'no', URL addresses will not be shown.\n#epub_show_urls = 'inline'\n\n# If false, no index is generated.\n#epub_use_index = True\n", "path": "docs/conf.py"}]}