|
16 | 16 | # If extensions (or modules to document with autodoc) are in another directory,
|
17 | 17 | # add these directories to sys.path here. If the directory is relative to the
|
18 | 18 | # 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('.')) |
20 | 20 |
|
21 | 21 | # -- General configuration -----------------------------------------------------
|
22 | 22 |
|
23 | 23 | # If your documentation needs a minimal Sphinx version, state it here.
|
24 |
| -#needs_sphinx = '1.0' |
| 24 | +# needs_sphinx = '1.0' |
25 | 25 |
|
26 | 26 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
27 | 27 | # 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"] |
29 | 29 |
|
30 | 30 | autoclass_content = "both"
|
31 | 31 |
|
32 | 32 | # Add any paths that contain templates here, relative to this directory.
|
33 |
| -templates_path = ['_templates'] |
| 33 | +templates_path = ["_templates"] |
34 | 34 |
|
35 | 35 | # The suffix of source filenames.
|
36 |
| -source_suffix = '.rst' |
| 36 | +source_suffix = ".rst" |
37 | 37 |
|
38 | 38 | # The encoding of source files.
|
39 |
| -#source_encoding = 'utf-8-sig' |
| 39 | +# source_encoding = 'utf-8-sig' |
40 | 40 |
|
41 | 41 | # The master toctree document.
|
42 |
| -master_doc = 'index' |
| 42 | +master_doc = "index" |
43 | 43 |
|
44 | 44 | # 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" |
47 | 47 |
|
48 | 48 | # The version info for the project you're documenting, acts as replacement for
|
49 | 49 | # |version| and |release|, also used in various other places throughout the
|
50 | 50 | # built documents.
|
51 | 51 | #
|
52 | 52 |
|
53 | 53 | import elasticsearch
|
| 54 | + |
54 | 55 | # The short X.Y version.
|
55 | 56 | version = elasticsearch.__versionstr__
|
56 | 57 | # The full version, including alpha/beta/rc tags.
|
57 | 58 | release = version
|
58 | 59 |
|
59 | 60 | # The language for content autogenerated by Sphinx. Refer to documentation
|
60 | 61 | # for a list of supported languages.
|
61 |
| -#language = None |
| 62 | +# language = None |
62 | 63 |
|
63 | 64 | # There are two options for replacing |today|: either, you set today to some
|
64 | 65 | # non-false value, then it is used:
|
65 |
| -#today = '' |
| 66 | +# today = '' |
66 | 67 | # Else, today_fmt is used as the format for a strftime call.
|
67 |
| -#today_fmt = '%B %d, %Y' |
| 68 | +# today_fmt = '%B %d, %Y' |
68 | 69 |
|
69 | 70 | # List of patterns, relative to source directory, that match files and
|
70 | 71 | # directories to ignore when looking for source files.
|
71 |
| -exclude_patterns = ['_build'] |
| 72 | +exclude_patterns = ["_build"] |
72 | 73 |
|
73 | 74 | # The reST default role (used for this markup: `text`) to use for all documents.
|
74 |
| -#default_role = None |
| 75 | +# default_role = None |
75 | 76 |
|
76 | 77 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
77 |
| -#add_function_parentheses = True |
| 78 | +# add_function_parentheses = True |
78 | 79 |
|
79 | 80 | # If true, the current module name will be prepended to all description
|
80 | 81 | # unit titles (such as .. function::).
|
81 |
| -#add_module_names = True |
| 82 | +# add_module_names = True |
82 | 83 |
|
83 | 84 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
84 | 85 | # output. They are ignored by default.
|
85 |
| -#show_authors = False |
| 86 | +# show_authors = False |
86 | 87 |
|
87 | 88 | # The name of the Pygments (syntax highlighting) style to use.
|
88 |
| -pygments_style = 'sphinx' |
| 89 | +pygments_style = "sphinx" |
89 | 90 |
|
90 | 91 | # A list of ignored prefixes for module index sorting.
|
91 |
| -#modindex_common_prefix = [] |
| 92 | +# modindex_common_prefix = [] |
92 | 93 |
|
93 | 94 | # If true, keep warnings as "system message" paragraphs in the built documents.
|
94 |
| -#keep_warnings = False |
| 95 | +# keep_warnings = False |
95 | 96 |
|
96 | 97 |
|
97 | 98 | # -- Options for HTML output ---------------------------------------------------
|
98 | 99 |
|
99 | 100 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
100 | 101 | # a list of builtin themes.
|
101 | 102 |
|
102 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 103 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
103 | 104 |
|
104 | 105 | if not on_rtd: # only import and set the theme if we're building docs locally
|
105 | 106 | import sphinx_rtd_theme
|
106 |
| - html_theme = 'sphinx_rtd_theme' |
| 107 | + |
| 108 | + html_theme = "sphinx_rtd_theme" |
107 | 109 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
108 | 110 |
|
109 | 111 | # Theme options are theme-specific and customize the look and feel of a theme
|
|
113 | 115 | # Theme options are theme-specific and customize the look and feel of a theme
|
114 | 116 | # further. For a list of options available for each theme, see the
|
115 | 117 | # documentation.
|
116 |
| -#html_theme_options = {} |
| 118 | +# html_theme_options = {} |
117 | 119 |
|
118 | 120 | # Add any paths that contain custom themes here, relative to this directory.
|
119 |
| -#html_theme_path = [] |
| 121 | +# html_theme_path = [] |
120 | 122 |
|
121 | 123 | # The name for this set of Sphinx documents. If None, it defaults to
|
122 | 124 | # "<project> v<release> documentation".
|
123 |
| -#html_title = None |
| 125 | +# html_title = None |
124 | 126 |
|
125 | 127 | # A shorter title for the navigation bar. Default is the same as html_title.
|
126 |
| -#html_short_title = None |
| 128 | +# html_short_title = None |
127 | 129 |
|
128 | 130 | # The name of an image file (relative to this directory) to place at the top
|
129 | 131 | # of the sidebar.
|
130 |
| -#html_logo = None |
| 132 | +# html_logo = None |
131 | 133 |
|
132 | 134 | # The name of an image file (within the static path) to use as favicon of the
|
133 | 135 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
134 | 136 | # pixels large.
|
135 |
| -#html_favicon = None |
| 137 | +# html_favicon = None |
136 | 138 |
|
137 | 139 | # Add any paths that contain custom static files (such as style sheets) here,
|
138 | 140 | # relative to this directory. They are copied after the builtin static files,
|
139 | 141 | # so a file named "default.css" will overwrite the builtin "default.css".
|
140 |
| -html_static_path = ['_static'] |
| 142 | +html_static_path = ["_static"] |
141 | 143 |
|
142 | 144 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
143 | 145 | # using the given strftime format.
|
144 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 146 | +# html_last_updated_fmt = '%b %d, %Y' |
145 | 147 |
|
146 | 148 | # If true, SmartyPants will be used to convert quotes and dashes to
|
147 | 149 | # typographically correct entities.
|
148 |
| -#html_use_smartypants = True |
| 150 | +# html_use_smartypants = True |
149 | 151 |
|
150 | 152 | # Custom sidebar templates, maps document names to template names.
|
151 |
| -#html_sidebars = {} |
| 153 | +# html_sidebars = {} |
152 | 154 |
|
153 | 155 | # Additional templates that should be rendered to pages, maps page names to
|
154 | 156 | # template names.
|
155 |
| -#html_additional_pages = {} |
| 157 | +# html_additional_pages = {} |
156 | 158 |
|
157 | 159 | # If false, no module index is generated.
|
158 |
| -#html_domain_indices = True |
| 160 | +# html_domain_indices = True |
159 | 161 |
|
160 | 162 | # If false, no index is generated.
|
161 |
| -#html_use_index = True |
| 163 | +# html_use_index = True |
162 | 164 |
|
163 | 165 | # If true, the index is split into individual pages for each letter.
|
164 |
| -#html_split_index = False |
| 166 | +# html_split_index = False |
165 | 167 |
|
166 | 168 | # If true, links to the reST sources are added to the pages.
|
167 |
| -#html_show_sourcelink = True |
| 169 | +# html_show_sourcelink = True |
168 | 170 |
|
169 | 171 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
170 |
| -#html_show_sphinx = True |
| 172 | +# html_show_sphinx = True |
171 | 173 |
|
172 | 174 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
173 |
| -#html_show_copyright = True |
| 175 | +# html_show_copyright = True |
174 | 176 |
|
175 | 177 | # If true, an OpenSearch description file will be output, and all pages will
|
176 | 178 | # contain a <link> tag referring to it. The value of this option must be the
|
177 | 179 | # base URL from which the finished HTML is served.
|
178 |
| -#html_use_opensearch = '' |
| 180 | +# html_use_opensearch = '' |
179 | 181 |
|
180 | 182 | # This is the file name suffix for HTML files (e.g. ".xhtml").
|
181 |
| -#html_file_suffix = None |
| 183 | +# html_file_suffix = None |
182 | 184 |
|
183 | 185 | # Output file base name for HTML help builder.
|
184 |
| -htmlhelp_basename = 'Elasticsearchdoc' |
| 186 | +htmlhelp_basename = "Elasticsearchdoc" |
185 | 187 |
|
186 | 188 |
|
187 | 189 | # -- Options for LaTeX output --------------------------------------------------
|
188 | 190 |
|
189 | 191 | 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': '', |
198 | 198 | }
|
199 | 199 |
|
200 | 200 | # Grouping the document tree into LaTeX files. List of tuples
|
201 | 201 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
202 | 202 | 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 | + ) |
205 | 210 | ]
|
206 | 211 |
|
207 | 212 | # The name of an image file (relative to this directory) to place at the top of
|
208 | 213 | # the title page.
|
209 |
| -#latex_logo = None |
| 214 | +# latex_logo = None |
210 | 215 |
|
211 | 216 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
212 | 217 | # not chapters.
|
213 |
| -#latex_use_parts = False |
| 218 | +# latex_use_parts = False |
214 | 219 |
|
215 | 220 | # If true, show page references after internal links.
|
216 |
| -#latex_show_pagerefs = False |
| 221 | +# latex_show_pagerefs = False |
217 | 222 |
|
218 | 223 | # If true, show URL addresses after external links.
|
219 |
| -#latex_show_urls = False |
| 224 | +# latex_show_urls = False |
220 | 225 |
|
221 | 226 | # Documents to append as an appendix to all manuals.
|
222 |
| -#latex_appendices = [] |
| 227 | +# latex_appendices = [] |
223 | 228 |
|
224 | 229 | # If false, no module index is generated.
|
225 |
| -#latex_domain_indices = True |
| 230 | +# latex_domain_indices = True |
226 | 231 |
|
227 | 232 |
|
228 | 233 | # -- Options for manual page output --------------------------------------------
|
229 | 234 |
|
230 | 235 | # One entry per manual page. List of tuples
|
231 | 236 | # (source start file, name, description, authors, manual section).
|
232 | 237 | 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) |
235 | 239 | ]
|
236 | 240 |
|
237 | 241 | # If true, show URL addresses after external links.
|
238 |
| -#man_show_urls = False |
| 242 | +# man_show_urls = False |
239 | 243 |
|
240 | 244 |
|
241 | 245 | # -- Options for Texinfo output ------------------------------------------------
|
|
244 | 248 | # (source start file, target name, title, author,
|
245 | 249 | # dir menu entry, description, category)
|
246 | 250 | 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 | + ) |
250 | 260 | ]
|
251 | 261 |
|
252 | 262 | # Documents to append as an appendix to all manuals.
|
253 |
| -#texinfo_appendices = [] |
| 263 | +# texinfo_appendices = [] |
254 | 264 |
|
255 | 265 | # If false, no module index is generated.
|
256 |
| -#texinfo_domain_indices = True |
| 266 | +# texinfo_domain_indices = True |
257 | 267 |
|
258 | 268 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
|
259 |
| -#texinfo_show_urls = 'footnote' |
| 269 | +# texinfo_show_urls = 'footnote' |
260 | 270 |
|
261 | 271 | # 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