We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
DOC: Matplotlib 3.0.0 seems to no longer have "matplotlib.sphinxext.only_directives"
Docbuild is failing. 

Seems we used to reference this in the sphinx build:

https://github.com/matplotlib/matplotlib/blob/2e0eb748d3c1b808ed89e86e80a2d1565b4cd896/lib/matplotlib/sphinxext/only_directives.py

But that module is now gone in 3.0.0. I haven't read the reasons/matplotlibs suggested workaround yet.



--- 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/source/conf.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 #
3 # statsmodels documentation build configuration file, created by
4 # sphinx-quickstart on Sat Jan 22 11:17:58 2011.
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 sys, os
15 
16 # If extensions (or modules to document with autodoc) are in another directory,
17 # add these directories to sys.path here. If the directory is relative to the
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
19 sys.path.insert(0, os.path.abspath('../sphinxext'))
20 
21 
22 # -- General configuration -----------------------------------------------------
23 
24 # If your documentation needs a minimal Sphinx version, state it here.
25 
26 # Add any Sphinx extension module names here, as strings. They can be extensions
27 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28 extensions = ['sphinx.ext.autodoc',
29               'sphinx.ext.doctest',
30               'sphinx.ext.intersphinx',
31               'sphinx.ext.todo',
32               'sphinx.ext.mathjax', # One of mathjax or imgmath
33               # 'sphinx.ext.imgmath',
34               'sphinx.ext.viewcode',
35               'sphinx.ext.autosummary',
36               'sphinx.ext.inheritance_diagram',
37               'matplotlib.sphinxext.plot_directive',
38               'matplotlib.sphinxext.only_directives',
39               'IPython.sphinxext.ipython_console_highlighting',
40               'IPython.sphinxext.ipython_directive',
41               'github',  # for GitHub links,
42               # 'numpydoc',  # numpydoc or napoleon, but not both
43               'sphinx.ext.napoleon'
44               ]
45 
46 # Add any paths that contain templates here, relative to this directory.
47 templates_path = ['_templates']
48 
49 # The suffix of source filenames.
50 source_suffix = '.rst'
51 
52 # The encoding of source files.
53 #source_encoding = 'utf-8-sig'
54 
55 # The master toctree document.
56 master_doc = 'index'
57 
58 # General information about the project.
59 project = u'statsmodels'
60 copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'
61 
62 
63 autosummary_generate = True
64 autoclass_content = 'class'
65 
66 # The version info for the project you're documenting, acts as replacement for
67 # |version| and |release|, also used in various other places throughout the
68 # built documents.
69 #
70 from statsmodels import __version__
71 release = __version__
72 # The full version, including dev tag.
73 version = __version__
74 
75 # set inheritance_graph_attrs
76 # you need graphviz installed to use this
77 # see: http://sphinx.pocoo.org/ext/inheritance.html
78 # and graphviz dot documentation http://www.graphviz.org/content/attrs
79 #NOTE: giving the empty string to size allows graphviz to figure out
80 # the size
81 inheritance_graph_attrs = dict(size='""', ratio="compress", fontsize=14,
82         rankdir="LR")
83 
84 #inheritance_node_attrs = dict(shape='ellipse', fontsize=14, height=0.75,
85 #                              color='dodgerblue1', style='filled')
86 
87 # The language for content autogenerated by Sphinx. Refer to documentation
88 # for a list of supported languages.
89 #language = None
90 
91 # There are two options for replacing |today|: either, you set today to some
92 # non-false value, then it is used:
93 #today = ''
94 # Else, today_fmt is used as the format for a strftime call.
95 #today_fmt = '%B %d, %Y'
96 
97 # List of patterns, relative to source directory, that match files and
98 # directories to ignore when looking for source files.
99 exclude_patterns = ['*/autosummary/class.rst', '*/autosummary/glmfamilies.rst']
100 
101 # The reST default role (used for this markup: `text`) to use for all documents.
102 #default_role = None
103 
104 # If true, '()' will be appended to :func: etc. cross-reference text.
105 add_function_parentheses = False
106 
107 # If true, the current module name will be prepended to all description
108 # unit titles (such as .. function::).
109 #add_module_names = True
110 
111 # If true, sectionauthor and moduleauthor directives will be shown in the
112 # output. They are ignored by default.
113 #show_authors = False
114 
115 # The name of the Pygments (syntax highlighting) style to use.
116 pygments_style = 'sphinx'
117 
118 # A list of ignored prefixes for module index sorting.
119 #modindex_common_prefix = []
120 
121 
122 # -- Options for HTML output ---------------------------------------------------
123 
124 # The theme to use for HTML and HTML Help pages.  See the documentation for
125 # a list of builtin themes.
126 #html_theme = 'default'
127 
128 if 'htmlhelp' in sys.argv:
129     #html_theme = 'statsmodels_htmlhelp'  #doesn't look nice yet
130     html_theme = 'default'
131     print('################# using statsmodels_htmlhelp ############')
132 else:
133     html_theme = 'statsmodels'
134 
135 # Theme options are theme-specific and customize the look and feel of a theme
136 # further.  For a list of options available for each theme, see the
137 # documentation.
138 #html_theme_options = {}
139 
140 # Add any paths that contain custom themes here, relative to this directory.
141 html_theme_path = ['../themes']
142 
143 # The name for this set of Sphinx documents.  If None, it defaults to
144 # "<project> v<release> documentation".
145 #html_title = None
146 
147 # A shorter title for the navigation bar.  Default is the same as html_title.
148 #html_short_title = None
149 
150 # The name of an image file (relative to this directory) to place at the top
151 # of the sidebar.
152 html_logo = 'images/statsmodels_hybi_banner.png'
153 
154 # The name of an image file (within the static path) to use as favicon of the
155 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
156 # pixels large.
157 html_favicon = 'images/statsmodels_hybi_favico.ico'
158 
159 # Add any paths that contain custom static files (such as style sheets) here,
160 # relative to this directory. They are copied after the builtin static files,
161 # so a file named "default.css" will overwrite the builtin "default.css".
162 html_static_path = ['_static']
163 
164 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
165 # using the given strftime format.
166 #html_last_updated_fmt = '%b %d, %Y'
167 
168 # If true, SmartyPants will be used to convert quotes and dashes to
169 # typographically correct entities.
170 #html_use_smartypants = True
171 
172 # Custom sidebar templates, maps document names to template names.
173 html_sidebars = {'index' : ['indexsidebar.html','searchbox.html','sidelinks.html']}
174 
175 # Additional templates that should be rendered to pages, maps page names to
176 # template names.
177 #html_additional_pages = {}
178 
179 # If false, no module index is generated.
180 html_domain_indices = True
181 
182 # If false, no index is generated.
183 #html_use_index = True
184 
185 # If true, the index is split into individual pages for each letter.
186 #html_split_index = False
187 
188 # If true, links to the reST sources are added to the pages.
189 #html_show_sourcelink = True
190 
191 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
192 #html_show_sphinx = True
193 
194 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
195 #html_show_copyright = True
196 
197 # If true, an OpenSearch description file will be output, and all pages will
198 # contain a <link> tag referring to it.  The value of this option must be the
199 # base URL from which the finished HTML is served.
200 #html_use_opensearch = ''
201 
202 # This is the file name suffix for HTML files (e.g. ".xhtml").
203 #html_file_suffix = None
204 
205 # Output file base name for HTML help builder.
206 htmlhelp_basename = 'statsmodelsdoc'
207 
208 
209 # -- Options for LaTeX output --------------------------------------------------
210 
211 # The paper size ('letter' or 'a4').
212 #latex_paper_size = 'letter'
213 
214 # The font size ('10pt', '11pt' or '12pt').
215 #latex_font_size = '10pt'
216 
217 # Grouping the document tree into LaTeX files. List of tuples
218 # (source start file, target name, title, author, documentclass [howto/manual]).
219 latex_documents = [
220   ('index', 'statsmodels.tex', u'statsmodels Documentation',
221    u'Josef Perktold, Skipper Seabold', 'manual'),
222 ]
223 
224 # The name of an image file (relative to this directory) to place at the top of
225 # the title page.
226 #latex_logo = None
227 
228 # For "manual" documents, if this is true, then toplevel headings are parts,
229 # not chapters.
230 #latex_use_parts = False
231 
232 # If true, show page references after internal links.
233 #latex_show_pagerefs = False
234 
235 # If true, show URL addresses after external links.
236 #latex_show_urls = False
237 
238 # Additional stuff for the LaTeX preamble.
239 #latex_preamble = ''
240 
241 # Documents to append as an appendix to all manuals.
242 #latex_appendices = []
243 
244 # If false, no module index is generated.
245 #latex_domain_indices = True
246 
247 # imgmath options
248 imgmath_image_format = 'png'
249 imgmath_latex_preamble = r'\usepackage[active]{preview}'
250 imgmath_use_preview = True
251 
252 # -- Options for manual page output --------------------------------------------
253 
254 # One entry per manual page. List of tuples
255 # (source start file, name, description, authors, manual section).
256 man_pages = [
257     ('index', 'statsmodels', u'statsmodels Documentation',
258      [u'Josef Perktold, Skipper Seabold, Jonathan Taylor'], 1)
259 ]
260 
261 
262 # -- Options for Epub output ---------------------------------------------------
263 
264 # Bibliographic Dublin Core info.
265 epub_title = u'statsmodels'
266 epub_author = u'Josef Perktold, Skipper Seabold'
267 epub_publisher = u'Josef Perktold, Skipper Seabold'
268 epub_copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'
269 
270 # The language of the text. It defaults to the language option
271 # or en if the language is not set.
272 #epub_language = ''
273 
274 # The scheme of the identifier. Typical schemes are ISBN or URL.
275 #epub_scheme = ''
276 
277 # The unique identifier of the text. This can be a ISBN number
278 # or the project homepage.
279 #epub_identifier = ''
280 
281 # A unique identification for the text.
282 #epub_uid = ''
283 
284 # HTML files that should be inserted before the pages created by sphinx.
285 # The format is a list of tuples containing the path and title.
286 #epub_pre_files = []
287 
288 # HTML files shat should be inserted after the pages created by sphinx.
289 # The format is a list of tuples containing the path and title.
290 #epub_post_files = []
291 
292 # A list of files that should not be packed into the epub file.
293 #epub_exclude_files = []
294 
295 # The depth of the table of contents in toc.ncx.
296 #epub_tocdepth = 3
297 
298 # Allow duplicate toc entries.
299 #epub_tocdup = True
300 
301 
302 # Example configuration for intersphinx: refer to the Python standard library.
303 intersphinx_mapping = {
304     'numpy': ('https://docs.scipy.org/doc/numpy/', None),
305     'python': ('https://docs.python.org/3/', None),
306     'pydagogue': ('https://matthew-brett.github.io/pydagogue/', None),
307     'patsy': ('https://patsy.readthedocs.io/en/latest/', None),
308     'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
309 }
310 
311 from os.path import dirname, abspath, join
312 plot_basedir = join(dirname(dirname(os.path.abspath(__file__))), 'source')
313 
314 # ghissue config
315 github_project_url = "https://github.com/statsmodels/statsmodels"
316 
317 # for the examples landing page
318 import json
319 example_context = json.load(open('examples/landing.json'))
320 html_context = {'examples': example_context }
321 
322 # --------------- DOCTEST -------------------
323 doctest_global_setup = """
324 import statsmodels.api as sm
325 import statsmodels.formula.api as smf
326 import numpy as np
327 import scipy.stats as stats
328 import matplotlib.pyplot as plt
329 import pandas as pd
330 """
```
--- 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/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -35,7 +35,6 @@
               'sphinx.ext.autosummary',
               'sphinx.ext.inheritance_diagram',
               'matplotlib.sphinxext.plot_directive',
-              'matplotlib.sphinxext.only_directives',
               'IPython.sphinxext.ipython_console_highlighting',
               'IPython.sphinxext.ipython_directive',
               'github',  # for GitHub links,
@@ -327,4 +326,4 @@
 import scipy.stats as stats
 import matplotlib.pyplot as plt
 import pandas as pd
-"""
\ No newline at end of file
+"""

{"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@@ -35,7 +35,6 @@\n               'sphinx.ext.autosummary',\n               'sphinx.ext.inheritance_diagram',\n               'matplotlib.sphinxext.plot_directive',\n-              'matplotlib.sphinxext.only_directives',\n               'IPython.sphinxext.ipython_console_highlighting',\n               'IPython.sphinxext.ipython_directive',\n               'github',  # for GitHub links,\n@@ -327,4 +326,4 @@\n import scipy.stats as stats\n import matplotlib.pyplot as plt\n import pandas as pd\n-\"\"\"\n\\ No newline at end of file\n+\"\"\"\n", "issue": "DOC: Matplotlib 3.0.0 seems to no longer have \"matplotlib.sphinxext.only_directives\"\nDocbuild is failing. \r\n\r\nSeems we used to reference this in the sphinx build:\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/2e0eb748d3c1b808ed89e86e80a2d1565b4cd896/lib/matplotlib/sphinxext/only_directives.py\r\n\r\nBut that module is now gone in 3.0.0. I haven't read the reasons/matplotlibs suggested workaround yet.\r\n\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# statsmodels documentation build configuration file, created by\n# sphinx-quickstart on Sat Jan 22 11:17:58 2011.\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 sys, os\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.\nsys.path.insert(0, os.path.abspath('../sphinxext'))\n\n\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\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',\n              'sphinx.ext.doctest',\n              'sphinx.ext.intersphinx',\n              'sphinx.ext.todo',\n              'sphinx.ext.mathjax', # One of mathjax or imgmath\n              # 'sphinx.ext.imgmath',\n              'sphinx.ext.viewcode',\n              'sphinx.ext.autosummary',\n              'sphinx.ext.inheritance_diagram',\n              'matplotlib.sphinxext.plot_directive',\n              'matplotlib.sphinxext.only_directives',\n              'IPython.sphinxext.ipython_console_highlighting',\n              'IPython.sphinxext.ipython_directive',\n              'github',  # for GitHub links,\n              # 'numpydoc',  # numpydoc or napoleon, but not both\n              'sphinx.ext.napoleon'\n              ]\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 = 'index'\n\n# General information about the project.\nproject = u'statsmodels'\ncopyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'\n\n\nautosummary_generate = True\nautoclass_content = 'class'\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 statsmodels import __version__\nrelease = __version__\n# The full version, including dev tag.\nversion = __version__\n\n# set inheritance_graph_attrs\n# you need graphviz installed to use this\n# see: http://sphinx.pocoo.org/ext/inheritance.html\n# and graphviz dot documentation http://www.graphviz.org/content/attrs\n#NOTE: giving the empty string to size allows graphviz to figure out\n# the size\ninheritance_graph_attrs = dict(size='\"\"', ratio=\"compress\", fontsize=14,\n        rankdir=\"LR\")\n\n#inheritance_node_attrs = dict(shape='ellipse', fontsize=14, height=0.75,\n#                              color='dodgerblue1', style='filled')\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 = ['*/autosummary/class.rst', '*/autosummary/glmfamilies.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.\nadd_function_parentheses = False\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\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#html_theme = 'default'\n\nif 'htmlhelp' in sys.argv:\n    #html_theme = 'statsmodels_htmlhelp'  #doesn't look nice yet\n    html_theme = 'default'\n    print('################# using statsmodels_htmlhelp ############')\nelse:\n    html_theme = 'statsmodels'\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 = ['../themes']\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.\nhtml_logo = 'images/statsmodels_hybi_banner.png'\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.\nhtml_favicon = 'images/statsmodels_hybi_favico.ico'\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 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.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\nhtml_sidebars = {'index' : ['indexsidebar.html','searchbox.html','sidelinks.html']}\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.\nhtml_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 = 'statsmodelsdoc'\n\n\n# -- Options for LaTeX output --------------------------------------------------\n\n# The paper size ('letter' or 'a4').\n#latex_paper_size = 'letter'\n\n# The font size ('10pt', '11pt' or '12pt').\n#latex_font_size = '10pt'\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', 'statsmodels.tex', u'statsmodels Documentation',\n   u'Josef Perktold, Skipper Seabold', '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# Additional stuff for the LaTeX preamble.\n#latex_preamble = ''\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# imgmath options\nimgmath_image_format = 'png'\nimgmath_latex_preamble = r'\\usepackage[active]{preview}'\nimgmath_use_preview = True\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', 'statsmodels', u'statsmodels Documentation',\n     [u'Josef Perktold, Skipper Seabold, Jonathan Taylor'], 1)\n]\n\n\n# -- Options for Epub output ---------------------------------------------------\n\n# Bibliographic Dublin Core info.\nepub_title = u'statsmodels'\nepub_author = u'Josef Perktold, Skipper Seabold'\nepub_publisher = u'Josef Perktold, Skipper Seabold'\nepub_copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'\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# 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\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    'numpy': ('https://docs.scipy.org/doc/numpy/', None),\n    'python': ('https://docs.python.org/3/', None),\n    'pydagogue': ('https://matthew-brett.github.io/pydagogue/', None),\n    'patsy': ('https://patsy.readthedocs.io/en/latest/', None),\n    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),\n}\n\nfrom os.path import dirname, abspath, join\nplot_basedir = join(dirname(dirname(os.path.abspath(__file__))), 'source')\n\n# ghissue config\ngithub_project_url = \"https://github.com/statsmodels/statsmodels\"\n\n# for the examples landing page\nimport json\nexample_context = json.load(open('examples/landing.json'))\nhtml_context = {'examples': example_context }\n\n# --------------- DOCTEST -------------------\ndoctest_global_setup = \"\"\"\nimport statsmodels.api as sm\nimport statsmodels.formula.api as smf\nimport numpy as np\nimport scipy.stats as stats\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\"\"\"", "path": "docs/source/conf.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# statsmodels documentation build configuration file, created by\n# sphinx-quickstart on Sat Jan 22 11:17:58 2011.\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 sys, os\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.\nsys.path.insert(0, os.path.abspath('../sphinxext'))\n\n\n# -- General configuration -----------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\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',\n              'sphinx.ext.doctest',\n              'sphinx.ext.intersphinx',\n              'sphinx.ext.todo',\n              'sphinx.ext.mathjax', # One of mathjax or imgmath\n              # 'sphinx.ext.imgmath',\n              'sphinx.ext.viewcode',\n              'sphinx.ext.autosummary',\n              'sphinx.ext.inheritance_diagram',\n              'matplotlib.sphinxext.plot_directive',\n              'IPython.sphinxext.ipython_console_highlighting',\n              'IPython.sphinxext.ipython_directive',\n              'github',  # for GitHub links,\n              # 'numpydoc',  # numpydoc or napoleon, but not both\n              'sphinx.ext.napoleon'\n              ]\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 = 'index'\n\n# General information about the project.\nproject = u'statsmodels'\ncopyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'\n\n\nautosummary_generate = True\nautoclass_content = 'class'\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 statsmodels import __version__\nrelease = __version__\n# The full version, including dev tag.\nversion = __version__\n\n# set inheritance_graph_attrs\n# you need graphviz installed to use this\n# see: http://sphinx.pocoo.org/ext/inheritance.html\n# and graphviz dot documentation http://www.graphviz.org/content/attrs\n#NOTE: giving the empty string to size allows graphviz to figure out\n# the size\ninheritance_graph_attrs = dict(size='\"\"', ratio=\"compress\", fontsize=14,\n        rankdir=\"LR\")\n\n#inheritance_node_attrs = dict(shape='ellipse', fontsize=14, height=0.75,\n#                              color='dodgerblue1', style='filled')\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 = ['*/autosummary/class.rst', '*/autosummary/glmfamilies.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.\nadd_function_parentheses = False\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\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#html_theme = 'default'\n\nif 'htmlhelp' in sys.argv:\n    #html_theme = 'statsmodels_htmlhelp'  #doesn't look nice yet\n    html_theme = 'default'\n    print('################# using statsmodels_htmlhelp ############')\nelse:\n    html_theme = 'statsmodels'\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 = ['../themes']\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.\nhtml_logo = 'images/statsmodels_hybi_banner.png'\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.\nhtml_favicon = 'images/statsmodels_hybi_favico.ico'\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 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.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\nhtml_sidebars = {'index' : ['indexsidebar.html','searchbox.html','sidelinks.html']}\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.\nhtml_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 = 'statsmodelsdoc'\n\n\n# -- Options for LaTeX output --------------------------------------------------\n\n# The paper size ('letter' or 'a4').\n#latex_paper_size = 'letter'\n\n# The font size ('10pt', '11pt' or '12pt').\n#latex_font_size = '10pt'\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', 'statsmodels.tex', u'statsmodels Documentation',\n   u'Josef Perktold, Skipper Seabold', '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# Additional stuff for the LaTeX preamble.\n#latex_preamble = ''\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# imgmath options\nimgmath_image_format = 'png'\nimgmath_latex_preamble = r'\\usepackage[active]{preview}'\nimgmath_use_preview = True\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', 'statsmodels', u'statsmodels Documentation',\n     [u'Josef Perktold, Skipper Seabold, Jonathan Taylor'], 1)\n]\n\n\n# -- Options for Epub output ---------------------------------------------------\n\n# Bibliographic Dublin Core info.\nepub_title = u'statsmodels'\nepub_author = u'Josef Perktold, Skipper Seabold'\nepub_publisher = u'Josef Perktold, Skipper Seabold'\nepub_copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'\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# 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\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    'numpy': ('https://docs.scipy.org/doc/numpy/', None),\n    'python': ('https://docs.python.org/3/', None),\n    'pydagogue': ('https://matthew-brett.github.io/pydagogue/', None),\n    'patsy': ('https://patsy.readthedocs.io/en/latest/', None),\n    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),\n}\n\nfrom os.path import dirname, abspath, join\nplot_basedir = join(dirname(dirname(os.path.abspath(__file__))), 'source')\n\n# ghissue config\ngithub_project_url = \"https://github.com/statsmodels/statsmodels\"\n\n# for the examples landing page\nimport json\nexample_context = json.load(open('examples/landing.json'))\nhtml_context = {'examples': example_context }\n\n# --------------- DOCTEST -------------------\ndoctest_global_setup = \"\"\"\nimport statsmodels.api as sm\nimport statsmodels.formula.api as smf\nimport numpy as np\nimport scipy.stats as stats\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\"\"\"\n", "path": "docs/source/conf.py"}]}