We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Rename main storage/datastore/etc. docs since captions now have the name
We end up just repeating the names. See http://googlecloudplatform.github.io/gcloud-python/latest/

![screen_shot_019](https://cloud.githubusercontent.com/assets/520669/9090839/750bac50-3b51-11e5-9244-b687c9f2fe00.png)

and http://gcloud-python.readthedocs.org/en/latest/

![screen_shot_018](https://cloud.githubusercontent.com/assets/520669/9090843/7aa950e0-3b51-11e5-86a5-a2a8f2ccfd68.png)

And notice that "Datastore" is both the heading name and the name of the first document in the heading.


--- 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 # gcloud documentation build configuration file, created by
4 # sphinx-quickstart on Tue Jan 21 22:24:47 2014.
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 from email import message_from_string
15 import os
16 from pkg_resources import get_distribution
17 import sys
18 import urllib
19 
20 import sphinx_rtd_theme
21 
22 
23 ON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'
24 LOCAL_READ_THE_DOCS = os.environ.get('LOCAL_RTD', None) == 'True'
25 
26 # If extensions (or modules to document with autodoc) are in another directory,
27 # add these directories to sys.path here. If the directory is relative to the
28 # documentation root, use os.path.abspath to make it absolute, like shown here.
29 sys.path.insert(0, os.path.abspath('..'))
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 = [
39     'sphinx.ext.autodoc',
40     'sphinx.ext.autosummary',
41     'sphinx.ext.doctest',
42     'sphinx.ext.todo',
43     'sphinx.ext.viewcode',
44 ]
45 
46 # Add any paths that contain templates here, relative to this directory.
47 if ON_READ_THE_DOCS or LOCAL_READ_THE_DOCS:
48   templates_path = []
49 else:
50   templates_path = ['_templates']
51 
52 # The suffix of source filenames.
53 source_suffix = '.rst'
54 
55 # The encoding of source files.
56 #source_encoding = 'utf-8-sig'
57 
58 # The master toctree document.
59 master_doc = 'index'
60 
61 # General information about the project.
62 project = u'gcloud'
63 copyright = u'2014, Google'
64 
65 # The version info for the project you're documenting, acts as replacement for
66 # |version| and |release|, also used in various other places throughout the
67 # built documents.
68 #
69 # The short X.Y version.
70 distro = get_distribution('gcloud')
71 release = os.getenv('SPHINX_RELEASE', distro.version)
72 
73 # The language for content autogenerated by Sphinx. Refer to documentation
74 # for a list of supported languages.
75 #language = None
76 
77 # There are two options for replacing |today|: either, you set today to some
78 # non-false value, then it is used:
79 #today = ''
80 # Else, today_fmt is used as the format for a strftime call.
81 #today_fmt = '%B %d, %Y'
82 
83 # List of patterns, relative to source directory, that match files and
84 # directories to ignore when looking for source files.
85 exclude_patterns = ['_build', '_components/*']
86 
87 # The reST default role (used for this markup: `text`) to use for all documents.
88 #default_role = None
89 
90 # If true, '()' will be appended to :func: etc. cross-reference text.
91 #add_function_parentheses = True
92 
93 # If true, the current module name will be prepended to all description
94 # unit titles (such as .. function::).
95 #add_module_names = True
96 
97 # If true, sectionauthor and moduleauthor directives will be shown in the
98 # output. They are ignored by default.
99 #show_authors = False
100 
101 # The name of the Pygments (syntax highlighting) style to use.
102 pygments_style = 'sphinx'
103 
104 # A list of ignored prefixes for module index sorting.
105 #modindex_common_prefix = []
106 
107 
108 # -- Options for HTML output ---------------------------------------------------
109 
110 # The theme to use for HTML and HTML Help pages.  See the documentation for
111 # a list of builtin themes.
112 
113 if LOCAL_READ_THE_DOCS:
114   html_theme = 'sphinx_rtd_theme'
115   html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
116 elif not ON_READ_THE_DOCS:
117   html_style = 'css/main.css'
118 
119 # Theme options are theme-specific and customize the look and feel of a theme
120 # further.  For a list of options available for each theme, see the
121 # documentation.
122 #html_theme_options = {}
123 
124 # Add any paths that contain custom themes here, relative to this directory.
125 #html_theme_path = []
126 
127 # The name for this set of Sphinx documents.  If None, it defaults to
128 # "<project> v<release> documentation".
129 #html_title = None
130 
131 # A shorter title for the navigation bar.  Default is the same as html_title.
132 #html_short_title = None
133 
134 # The name of an image file (relative to this directory) to place at the top
135 # of the sidebar.
136 #html_logo = None
137 
138 # The name of an image file (within the static path) to use as favicon of the
139 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
140 # pixels large.
141 html_favicon = '_static/images/favicon.ico'
142 
143 # Add any paths that contain custom static files (such as style sheets) here,
144 # relative to this directory. They are copied after the builtin static files,
145 # so a file named "default.css" will overwrite the builtin "default.css".
146 html_static_path = ['_static']
147 
148 html_add_permalinks = '#'
149 
150 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
151 # using the given strftime format.
152 #html_last_updated_fmt = '%b %d, %Y'
153 
154 # If true, SmartyPants will be used to convert quotes and dashes to
155 # typographically correct entities.
156 #html_use_smartypants = True
157 
158 # Custom sidebar templates, maps document names to template names.
159 #html_sidebars = {}
160 
161 # Additional templates that should be rendered to pages, maps page names to
162 # template names.
163 #html_additional_pages = {}
164 
165 # If false, no module index is generated.
166 #html_domain_indices = True
167 
168 # If false, no index is generated.
169 #html_use_index = True
170 
171 # If true, the index is split into individual pages for each letter.
172 #html_split_index = False
173 
174 # If true, links to the reST sources are added to the pages.
175 #html_show_sourcelink = True
176 
177 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
178 #html_show_sphinx = True
179 
180 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
181 #html_show_copyright = True
182 
183 # If true, an OpenSearch description file will be output, and all pages will
184 # contain a <link> tag referring to it.  The value of this option must be the
185 # base URL from which the finished HTML is served.
186 #html_use_opensearch = ''
187 
188 # This is the file name suffix for HTML files (e.g. ".xhtml").
189 #html_file_suffix = None
190 
191 # Output file base name for HTML help builder.
192 htmlhelp_basename = 'gclouddoc'
193 
194 html_context = {}
195 
196 
197 # -- Options for LaTeX output --------------------------------------------------
198 
199 latex_elements = {
200 # The paper size ('letterpaper' or 'a4paper').
201 #'papersize': 'letterpaper',
202 
203 # The font size ('10pt', '11pt' or '12pt').
204 #'pointsize': '10pt',
205 
206 # Additional stuff for the LaTeX preamble.
207 #'preamble': '',
208 }
209 
210 metadata = distro.get_metadata(distro.PKG_INFO)
211 author = message_from_string(metadata).get('Author')
212 # Grouping the document tree into LaTeX files. List of tuples
213 # (source start file, target name, title, author, documentclass [howto/manual]).
214 latex_documents = [
215   ('index', 'gcloud.tex', u'gCloud Documentation',
216    author, 'manual'),
217 ]
218 
219 # The name of an image file (relative to this directory) to place at the top of
220 # the title page.
221 #latex_logo = None
222 
223 # For "manual" documents, if this is true, then toplevel headings are parts,
224 # not chapters.
225 #latex_use_parts = False
226 
227 # If true, show page references after internal links.
228 #latex_show_pagerefs = False
229 
230 # If true, show URL addresses after external links.
231 #latex_show_urls = False
232 
233 # Documents to append as an appendix to all manuals.
234 #latex_appendices = []
235 
236 # If false, no module index is generated.
237 #latex_domain_indices = True
238 
239 
240 # -- Options for manual page output --------------------------------------------
241 
242 # One entry per manual page. List of tuples
243 # (source start file, name, description, authors, manual section).
244 man_pages = [
245     ('index', 'gcloud', u'gCloud Documentation',
246      [author], 1)
247 ]
248 
249 # If true, show URL addresses after external links.
250 #man_show_urls = False
251 
252 
253 # -- Options for Texinfo output ------------------------------------------------
254 
255 # Grouping the document tree into Texinfo files. List of tuples
256 # (source start file, target name, title, author,
257 #  dir menu entry, description, category)
258 texinfo_documents = [
259   ('index', 'gcloud', u'gCloud Documentation',
260    author, 'gcloud', 'Python API for Google Cloud.',
261    'Miscellaneous'),
262 ]
263 
264 # Documents to append as an appendix to all manuals.
265 #texinfo_appendices = []
266 
267 # If false, no module index is generated.
268 #texinfo_domain_indices = True
269 
270 # How to display URL addresses: 'footnote', 'no', or 'inline'.
271 #texinfo_show_urls = 'footnote'
272 
273 # This pulls class descriptions from the class docstring,
274 # and parameter definitions from the __init__ docstring.
275 autoclass_content = 'both'
276 
277 issue_uri = ('https://github.com/GoogleCloudPlatform/gcloud-python/issues/'
278              'new?' + urllib.urlencode({'title': '[Documentation Issue] '}))
279 issue_uri_template = (
280     issue_uri + '&' + urllib.urlencode({'body': 'Page Name: '}) + '{0}' +
281     urllib.quote('\nRelease: ') + '{1}')
282 
283 html_context.update(
284     issue_uri=issue_uri,
285     issue_uri_template=issue_uri_template,
286 )
287
```
--- 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
@@ -82,7 +82,7 @@
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-exclude_patterns = ['_build', '_components/*']
+exclude_patterns = ['_build']
 
 # The reST default role (used for this markup: `text`) to use for all documents.
 #default_role = None

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -82,7 +82,7 @@\n \n # List of patterns, relative to source directory, that match files and\n # directories to ignore when looking for source files.\n-exclude_patterns = ['_build', '_components/*']\n+exclude_patterns = ['_build']\n \n # The reST default role (used for this markup: `text`) to use for all documents.\n #default_role = None\n", "issue": "Rename main storage/datastore/etc. docs since captions now have the name\nWe end up just repeating the names. See http://googlecloudplatform.github.io/gcloud-python/latest/\n\n![screen_shot_019](https://cloud.githubusercontent.com/assets/520669/9090839/750bac50-3b51-11e5-9244-b687c9f2fe00.png)\n\nand http://gcloud-python.readthedocs.org/en/latest/\n\n![screen_shot_018](https://cloud.githubusercontent.com/assets/520669/9090843/7aa950e0-3b51-11e5-86a5-a2a8f2ccfd68.png)\n\nAnd notice that \"Datastore\" is both the heading name and the name of the first document in the heading.\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# gcloud documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 21 22:24:47 2014.\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\nfrom email import message_from_string\nimport os\nfrom pkg_resources import get_distribution\nimport sys\nimport urllib\n\nimport sphinx_rtd_theme\n\n\nON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'\nLOCAL_READ_THE_DOCS = os.environ.get('LOCAL_RTD', None) == 'True'\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('..'))\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 = [\n    'sphinx.ext.autodoc',\n    'sphinx.ext.autosummary',\n    'sphinx.ext.doctest',\n    'sphinx.ext.todo',\n    'sphinx.ext.viewcode',\n]\n\n# Add any paths that contain templates here, relative to this directory.\nif ON_READ_THE_DOCS or LOCAL_READ_THE_DOCS:\n  templates_path = []\nelse:\n  templates_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'gcloud'\ncopyright = u'2014, Google'\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.\ndistro = get_distribution('gcloud')\nrelease = os.getenv('SPHINX_RELEASE', distro.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', '_components/*']\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\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\nif LOCAL_READ_THE_DOCS:\n  html_theme = 'sphinx_rtd_theme'\n  html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\nelif not ON_READ_THE_DOCS:\n  html_style = 'css/main.css'\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.\n#html_theme_path = []\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.\nhtml_favicon = '_static/images/favicon.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\nhtml_add_permalinks = '#'\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.\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 = 'gclouddoc'\n\nhtml_context = {}\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\nmetadata = distro.get_metadata(distro.PKG_INFO)\nauthor = message_from_string(metadata).get('Author')\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', 'gcloud.tex', u'gCloud Documentation',\n   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', 'gcloud', u'gCloud Documentation',\n     [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', 'gcloud', u'gCloud Documentation',\n   author, 'gcloud', 'Python API for Google Cloud.',\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# This pulls class descriptions from the class docstring,\n# and parameter definitions from the __init__ docstring.\nautoclass_content = 'both'\n\nissue_uri = ('https://github.com/GoogleCloudPlatform/gcloud-python/issues/'\n             'new?' + urllib.urlencode({'title': '[Documentation Issue] '}))\nissue_uri_template = (\n    issue_uri + '&' + urllib.urlencode({'body': 'Page Name: '}) + '{0}' +\n    urllib.quote('\\nRelease: ') + '{1}')\n\nhtml_context.update(\n    issue_uri=issue_uri,\n    issue_uri_template=issue_uri_template,\n)\n", "path": "docs/conf.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n#\n# gcloud documentation build configuration file, created by\n# sphinx-quickstart on Tue Jan 21 22:24:47 2014.\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\nfrom email import message_from_string\nimport os\nfrom pkg_resources import get_distribution\nimport sys\nimport urllib\n\nimport sphinx_rtd_theme\n\n\nON_READ_THE_DOCS = os.environ.get('READTHEDOCS', None) == 'True'\nLOCAL_READ_THE_DOCS = os.environ.get('LOCAL_RTD', None) == 'True'\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('..'))\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 = [\n    'sphinx.ext.autodoc',\n    'sphinx.ext.autosummary',\n    'sphinx.ext.doctest',\n    'sphinx.ext.todo',\n    'sphinx.ext.viewcode',\n]\n\n# Add any paths that contain templates here, relative to this directory.\nif ON_READ_THE_DOCS or LOCAL_READ_THE_DOCS:\n  templates_path = []\nelse:\n  templates_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'gcloud'\ncopyright = u'2014, Google'\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.\ndistro = get_distribution('gcloud')\nrelease = os.getenv('SPHINX_RELEASE', distro.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']\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\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\nif LOCAL_READ_THE_DOCS:\n  html_theme = 'sphinx_rtd_theme'\n  html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\nelif not ON_READ_THE_DOCS:\n  html_style = 'css/main.css'\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.\n#html_theme_path = []\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.\nhtml_favicon = '_static/images/favicon.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\nhtml_add_permalinks = '#'\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.\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 = 'gclouddoc'\n\nhtml_context = {}\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\nmetadata = distro.get_metadata(distro.PKG_INFO)\nauthor = message_from_string(metadata).get('Author')\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', 'gcloud.tex', u'gCloud Documentation',\n   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', 'gcloud', u'gCloud Documentation',\n     [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', 'gcloud', u'gCloud Documentation',\n   author, 'gcloud', 'Python API for Google Cloud.',\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# This pulls class descriptions from the class docstring,\n# and parameter definitions from the __init__ docstring.\nautoclass_content = 'both'\n\nissue_uri = ('https://github.com/GoogleCloudPlatform/gcloud-python/issues/'\n             'new?' + urllib.urlencode({'title': '[Documentation Issue] '}))\nissue_uri_template = (\n    issue_uri + '&' + urllib.urlencode({'body': 'Page Name: '}) + '{0}' +\n    urllib.quote('\\nRelease: ') + '{1}')\n\nhtml_context.update(\n    issue_uri=issue_uri,\n    issue_uri_template=issue_uri_template,\n)\n", "path": "docs/conf.py"}]}