Skip to content

Commit e968d68

Browse files
committed
Black
1 parent 2aab285 commit e968d68

34 files changed

+1297
-823
lines changed

docs/conf.py

+78-68
Original file line numberDiff line numberDiff line change
@@ -16,94 +16,96 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.insert(0, os.path.abspath('.'))
19+
# sys.path.insert(0, os.path.abspath('.'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

2323
# If your documentation needs a minimal Sphinx version, state it here.
24-
#needs_sphinx = '1.0'
24+
# needs_sphinx = '1.0'
2525

2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
28+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.doctest"]
2929

3030
autoclass_content = "both"
3131

3232
# Add any paths that contain templates here, relative to this directory.
33-
templates_path = ['_templates']
33+
templates_path = ["_templates"]
3434

3535
# The suffix of source filenames.
36-
source_suffix = '.rst'
36+
source_suffix = ".rst"
3737

3838
# The encoding of source files.
39-
#source_encoding = 'utf-8-sig'
39+
# source_encoding = 'utf-8-sig'
4040

4141
# The master toctree document.
42-
master_doc = 'index'
42+
master_doc = "index"
4343

4444
# General information about the project.
45-
project = u'Elasticsearch'
46-
copyright = u'2013, Honza Král'
45+
project = u"Elasticsearch"
46+
copyright = u"2013, Honza Král"
4747

4848
# The version info for the project you're documenting, acts as replacement for
4949
# |version| and |release|, also used in various other places throughout the
5050
# built documents.
5151
#
5252

5353
import elasticsearch
54+
5455
# The short X.Y version.
5556
version = elasticsearch.__versionstr__
5657
# The full version, including alpha/beta/rc tags.
5758
release = version
5859

5960
# The language for content autogenerated by Sphinx. Refer to documentation
6061
# for a list of supported languages.
61-
#language = None
62+
# language = None
6263

6364
# There are two options for replacing |today|: either, you set today to some
6465
# non-false value, then it is used:
65-
#today = ''
66+
# today = ''
6667
# Else, today_fmt is used as the format for a strftime call.
67-
#today_fmt = '%B %d, %Y'
68+
# today_fmt = '%B %d, %Y'
6869

6970
# List of patterns, relative to source directory, that match files and
7071
# directories to ignore when looking for source files.
71-
exclude_patterns = ['_build']
72+
exclude_patterns = ["_build"]
7273

7374
# The reST default role (used for this markup: `text`) to use for all documents.
74-
#default_role = None
75+
# default_role = None
7576

7677
# If true, '()' will be appended to :func: etc. cross-reference text.
77-
#add_function_parentheses = True
78+
# add_function_parentheses = True
7879

7980
# If true, the current module name will be prepended to all description
8081
# unit titles (such as .. function::).
81-
#add_module_names = True
82+
# add_module_names = True
8283

8384
# If true, sectionauthor and moduleauthor directives will be shown in the
8485
# output. They are ignored by default.
85-
#show_authors = False
86+
# show_authors = False
8687

8788
# The name of the Pygments (syntax highlighting) style to use.
88-
pygments_style = 'sphinx'
89+
pygments_style = "sphinx"
8990

9091
# A list of ignored prefixes for module index sorting.
91-
#modindex_common_prefix = []
92+
# modindex_common_prefix = []
9293

9394
# If true, keep warnings as "system message" paragraphs in the built documents.
94-
#keep_warnings = False
95+
# keep_warnings = False
9596

9697

9798
# -- Options for HTML output ---------------------------------------------------
9899

99100
# The theme to use for HTML and HTML Help pages. See the documentation for
100101
# a list of builtin themes.
101102

102-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
103+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
103104

104105
if not on_rtd: # only import and set the theme if we're building docs locally
105106
import sphinx_rtd_theme
106-
html_theme = 'sphinx_rtd_theme'
107+
108+
html_theme = "sphinx_rtd_theme"
107109
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
108110

109111
# Theme options are theme-specific and customize the look and feel of a theme
@@ -113,129 +115,131 @@
113115
# Theme options are theme-specific and customize the look and feel of a theme
114116
# further. For a list of options available for each theme, see the
115117
# documentation.
116-
#html_theme_options = {}
118+
# html_theme_options = {}
117119

118120
# Add any paths that contain custom themes here, relative to this directory.
119-
#html_theme_path = []
121+
# html_theme_path = []
120122

121123
# The name for this set of Sphinx documents. If None, it defaults to
122124
# "<project> v<release> documentation".
123-
#html_title = None
125+
# html_title = None
124126

125127
# A shorter title for the navigation bar. Default is the same as html_title.
126-
#html_short_title = None
128+
# html_short_title = None
127129

128130
# The name of an image file (relative to this directory) to place at the top
129131
# of the sidebar.
130-
#html_logo = None
132+
# html_logo = None
131133

132134
# The name of an image file (within the static path) to use as favicon of the
133135
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
134136
# pixels large.
135-
#html_favicon = None
137+
# html_favicon = None
136138

137139
# Add any paths that contain custom static files (such as style sheets) here,
138140
# relative to this directory. They are copied after the builtin static files,
139141
# so a file named "default.css" will overwrite the builtin "default.css".
140-
html_static_path = ['_static']
142+
html_static_path = ["_static"]
141143

142144
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143145
# using the given strftime format.
144-
#html_last_updated_fmt = '%b %d, %Y'
146+
# html_last_updated_fmt = '%b %d, %Y'
145147

146148
# If true, SmartyPants will be used to convert quotes and dashes to
147149
# typographically correct entities.
148-
#html_use_smartypants = True
150+
# html_use_smartypants = True
149151

150152
# Custom sidebar templates, maps document names to template names.
151-
#html_sidebars = {}
153+
# html_sidebars = {}
152154

153155
# Additional templates that should be rendered to pages, maps page names to
154156
# template names.
155-
#html_additional_pages = {}
157+
# html_additional_pages = {}
156158

157159
# If false, no module index is generated.
158-
#html_domain_indices = True
160+
# html_domain_indices = True
159161

160162
# If false, no index is generated.
161-
#html_use_index = True
163+
# html_use_index = True
162164

163165
# If true, the index is split into individual pages for each letter.
164-
#html_split_index = False
166+
# html_split_index = False
165167

166168
# If true, links to the reST sources are added to the pages.
167-
#html_show_sourcelink = True
169+
# html_show_sourcelink = True
168170

169171
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
170-
#html_show_sphinx = True
172+
# html_show_sphinx = True
171173

172174
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
173-
#html_show_copyright = True
175+
# html_show_copyright = True
174176

175177
# If true, an OpenSearch description file will be output, and all pages will
176178
# contain a <link> tag referring to it. The value of this option must be the
177179
# base URL from which the finished HTML is served.
178-
#html_use_opensearch = ''
180+
# html_use_opensearch = ''
179181

180182
# This is the file name suffix for HTML files (e.g. ".xhtml").
181-
#html_file_suffix = None
183+
# html_file_suffix = None
182184

183185
# Output file base name for HTML help builder.
184-
htmlhelp_basename = 'Elasticsearchdoc'
186+
htmlhelp_basename = "Elasticsearchdoc"
185187

186188

187189
# -- Options for LaTeX output --------------------------------------------------
188190

189191
latex_elements = {
190-
# The paper size ('letterpaper' or 'a4paper').
191-
#'papersize': 'letterpaper',
192-
193-
# The font size ('10pt', '11pt' or '12pt').
194-
#'pointsize': '10pt',
195-
196-
# Additional stuff for the LaTeX preamble.
197-
#'preamble': '',
192+
# The paper size ('letterpaper' or 'a4paper').
193+
#'papersize': 'letterpaper',
194+
# The font size ('10pt', '11pt' or '12pt').
195+
#'pointsize': '10pt',
196+
# Additional stuff for the LaTeX preamble.
197+
#'preamble': '',
198198
}
199199

200200
# Grouping the document tree into LaTeX files. List of tuples
201201
# (source start file, target name, title, author, documentclass [howto/manual]).
202202
latex_documents = [
203-
('index', 'Elasticsearch.tex', u'Elasticsearch Documentation',
204-
u'Honza Král', 'manual'),
203+
(
204+
"index",
205+
"Elasticsearch.tex",
206+
u"Elasticsearch Documentation",
207+
u"Honza Král",
208+
"manual",
209+
)
205210
]
206211

207212
# The name of an image file (relative to this directory) to place at the top of
208213
# the title page.
209-
#latex_logo = None
214+
# latex_logo = None
210215

211216
# For "manual" documents, if this is true, then toplevel headings are parts,
212217
# not chapters.
213-
#latex_use_parts = False
218+
# latex_use_parts = False
214219

215220
# If true, show page references after internal links.
216-
#latex_show_pagerefs = False
221+
# latex_show_pagerefs = False
217222

218223
# If true, show URL addresses after external links.
219-
#latex_show_urls = False
224+
# latex_show_urls = False
220225

221226
# Documents to append as an appendix to all manuals.
222-
#latex_appendices = []
227+
# latex_appendices = []
223228

224229
# If false, no module index is generated.
225-
#latex_domain_indices = True
230+
# latex_domain_indices = True
226231

227232

228233
# -- Options for manual page output --------------------------------------------
229234

230235
# One entry per manual page. List of tuples
231236
# (source start file, name, description, authors, manual section).
232237
man_pages = [
233-
('index', 'elasticsearch-py', u'Elasticsearch Documentation',
234-
[u'Honza Král'], 1)
238+
("index", "elasticsearch-py", u"Elasticsearch Documentation", [u"Honza Král"], 1)
235239
]
236240

237241
# If true, show URL addresses after external links.
238-
#man_show_urls = False
242+
# man_show_urls = False
239243

240244

241245
# -- Options for Texinfo output ------------------------------------------------
@@ -244,19 +248,25 @@
244248
# (source start file, target name, title, author,
245249
# dir menu entry, description, category)
246250
texinfo_documents = [
247-
('index', 'Elasticsearch', u'Elasticsearch Documentation',
248-
u'Honza Král', 'Elasticsearch', 'One line description of project.',
249-
'Miscellaneous'),
251+
(
252+
"index",
253+
"Elasticsearch",
254+
u"Elasticsearch Documentation",
255+
u"Honza Král",
256+
"Elasticsearch",
257+
"One line description of project.",
258+
"Miscellaneous",
259+
)
250260
]
251261

252262
# Documents to append as an appendix to all manuals.
253-
#texinfo_appendices = []
263+
# texinfo_appendices = []
254264

255265
# If false, no module index is generated.
256-
#texinfo_domain_indices = True
266+
# texinfo_domain_indices = True
257267

258268
# How to display URL addresses: 'footnote', 'no', or 'inline'.
259-
#texinfo_show_urls = 'footnote'
269+
# texinfo_show_urls = 'footnote'
260270

261271
# If true, do not generate a @detailmenu in the "Top" node's menu.
262-
#texinfo_no_detailmenu = False
272+
# texinfo_no_detailmenu = False

0 commit comments

Comments
 (0)