|
1 | 1 | # -*- coding: utf-8 -*-
|
| 2 | +# Licensed to Elasticsearch B.V. under one or more contributor |
| 3 | +# license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright |
| 5 | +# ownership. Elasticsearch B.V. licenses this file to you under |
| 6 | +# the Apache License, Version 2.0 (the "License"); you may |
| 7 | +# not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, |
| 13 | +# software distributed under the License is distributed on an |
| 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +# KIND, either express or implied. See the License for the |
| 16 | +# specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | + |
2 | 19 | #
|
3 | 20 | # Elasticsearch documentation build configuration file, created by
|
4 | 21 | # sphinx-quickstart on Mon May 6 15:38:41 2013.
|
|
13 | 30 |
|
14 | 31 | import os
|
15 | 32 | import datetime
|
| 33 | +import elasticsearch_dsl |
16 | 34 |
|
17 | 35 | # If extensions (or modules to document with autodoc) are in another directory,
|
18 | 36 | # add these directories to sys.path here. If the directory is relative to the
|
19 | 37 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
20 |
| -#sys.path.insert(0, os.path.abspath('.')) |
| 38 | +# sys.path.insert(0, os.path.abspath('.')) |
21 | 39 |
|
22 | 40 | # -- General configuration -----------------------------------------------------
|
23 | 41 |
|
24 | 42 | # If your documentation needs a minimal Sphinx version, state it here.
|
25 |
| -#needs_sphinx = '1.0' |
| 43 | +# needs_sphinx = '1.0' |
26 | 44 |
|
27 | 45 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
28 | 46 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
29 |
| -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest'] |
| 47 | +extensions = ["sphinx.ext.autodoc", "sphinx.ext.doctest"] |
30 | 48 |
|
31 | 49 | autoclass_content = "both"
|
32 | 50 |
|
33 | 51 | # Add any paths that contain templates here, relative to this directory.
|
34 |
| -templates_path = ['_templates'] |
| 52 | +templates_path = ["_templates"] |
35 | 53 |
|
36 | 54 | # The suffix of source filenames.
|
37 |
| -source_suffix = '.rst' |
| 55 | +source_suffix = ".rst" |
38 | 56 |
|
39 | 57 | # The encoding of source files.
|
40 |
| -#source_encoding = 'utf-8-sig' |
| 58 | +# source_encoding = 'utf-8-sig' |
41 | 59 |
|
42 | 60 | # The master toctree document.
|
43 |
| -master_doc = 'index' |
| 61 | +master_doc = "index" |
44 | 62 |
|
45 | 63 | # General information about the project.
|
46 |
| -project = u'Elasticsearch DSL' |
47 |
| -copyright = u'%d, Elasticsearch B.V' % datetime.datetime.now().year |
| 64 | +project = u"Elasticsearch DSL" |
| 65 | +copyright = u"%d, Elasticsearch B.V" % datetime.datetime.now().year |
48 | 66 |
|
49 | 67 | # The version info for the project you're documenting, acts as replacement for
|
50 | 68 | # |version| and |release|, also used in various other places throughout the
|
51 | 69 | # built documents.
|
52 |
| -# |
53 | 70 |
|
54 |
| -import elasticsearch_dsl |
55 | 71 | # The short X.Y version.
|
56 | 72 | version = elasticsearch_dsl.__versionstr__
|
57 | 73 | # The full version, including alpha/beta/rc tags.
|
58 | 74 | release = version
|
59 | 75 |
|
60 | 76 | # The language for content autogenerated by Sphinx. Refer to documentation
|
61 | 77 | # for a list of supported languages.
|
62 |
| -#language = None |
| 78 | +# language = None |
63 | 79 |
|
64 | 80 | # There are two options for replacing |today|: either, you set today to some
|
65 | 81 | # non-false value, then it is used:
|
66 |
| -#today = '' |
| 82 | +# today = '' |
67 | 83 | # Else, today_fmt is used as the format for a strftime call.
|
68 |
| -#today_fmt = '%B %d, %Y' |
| 84 | +# today_fmt = '%B %d, %Y' |
69 | 85 |
|
70 | 86 | # List of patterns, relative to source directory, that match files and
|
71 | 87 | # directories to ignore when looking for source files.
|
72 |
| -exclude_patterns = ['_build'] |
| 88 | +exclude_patterns = ["_build"] |
73 | 89 |
|
74 | 90 | # The reST default role (used for this markup: `text`) to use for all documents.
|
75 |
| -#default_role = None |
| 91 | +# default_role = None |
76 | 92 |
|
77 | 93 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
78 |
| -#add_function_parentheses = True |
| 94 | +# add_function_parentheses = True |
79 | 95 |
|
80 | 96 | # If true, the current module name will be prepended to all description
|
81 | 97 | # unit titles (such as .. function::).
|
82 |
| -#add_module_names = True |
| 98 | +# add_module_names = True |
83 | 99 |
|
84 | 100 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
85 | 101 | # output. They are ignored by default.
|
86 |
| -#show_authors = False |
| 102 | +# show_authors = False |
87 | 103 |
|
88 | 104 | # The name of the Pygments (syntax highlighting) style to use.
|
89 |
| -pygments_style = 'sphinx' |
| 105 | +pygments_style = "sphinx" |
90 | 106 |
|
91 | 107 | # A list of ignored prefixes for module index sorting.
|
92 |
| -#modindex_common_prefix = [] |
| 108 | +# modindex_common_prefix = [] |
93 | 109 |
|
94 | 110 | # If true, keep warnings as "system message" paragraphs in the built documents.
|
95 |
| -#keep_warnings = False |
| 111 | +# keep_warnings = False |
96 | 112 |
|
97 | 113 |
|
98 | 114 | # -- Options for HTML output ---------------------------------------------------
|
99 | 115 |
|
100 | 116 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
101 | 117 | # a list of builtin themes.
|
102 | 118 |
|
103 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 119 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
104 | 120 |
|
105 | 121 | if not on_rtd: # only import and set the theme if we're building docs locally
|
106 | 122 | import sphinx_rtd_theme
|
107 |
| - html_theme = 'sphinx_rtd_theme' |
| 123 | + |
| 124 | + html_theme = "sphinx_rtd_theme" |
108 | 125 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
109 | 126 |
|
110 | 127 | # Theme options are theme-specific and customize the look and feel of a theme
|
111 | 128 | # further. For a list of options available for each theme, see the
|
112 | 129 | # documentation.
|
113 |
| -#html_theme_options = {} |
| 130 | +# html_theme_options = {} |
114 | 131 |
|
115 | 132 | # Add any paths that contain custom themes here, relative to this directory.
|
116 |
| -#html_theme_path = [] |
| 133 | +# html_theme_path = [] |
117 | 134 |
|
118 | 135 | # The name for this set of Sphinx documents. If None, it defaults to
|
119 | 136 | # "<project> v<release> documentation".
|
120 |
| -#html_title = None |
| 137 | +# html_title = None |
121 | 138 |
|
122 | 139 | # A shorter title for the navigation bar. Default is the same as html_title.
|
123 |
| -#html_short_title = None |
| 140 | +# html_short_title = None |
124 | 141 |
|
125 | 142 | # The name of an image file (relative to this directory) to place at the top
|
126 | 143 | # of the sidebar.
|
127 |
| -#html_logo = None |
| 144 | +# html_logo = None |
128 | 145 |
|
129 | 146 | # The name of an image file (within the static path) to use as favicon of the
|
130 | 147 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
131 | 148 | # pixels large.
|
132 |
| -#html_favicon = None |
| 149 | +# html_favicon = None |
133 | 150 |
|
134 | 151 | # Add any paths that contain custom static files (such as style sheets) here,
|
135 | 152 | # relative to this directory. They are copied after the builtin static files,
|
136 | 153 | # so a file named "default.css" will overwrite the builtin "default.css".
|
137 |
| -#html_static_path = ['_static'] |
| 154 | +# html_static_path = ['_static'] |
138 | 155 |
|
139 | 156 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
140 | 157 | # using the given strftime format.
|
141 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 158 | +# html_last_updated_fmt = '%b %d, %Y' |
142 | 159 |
|
143 | 160 | # If true, SmartyPants will be used to convert quotes and dashes to
|
144 | 161 | # typographically correct entities.
|
145 |
| -#html_use_smartypants = True |
| 162 | +# html_use_smartypants = True |
146 | 163 |
|
147 | 164 | # Custom sidebar templates, maps document names to template names.
|
148 |
| -#html_sidebars = {} |
| 165 | +# html_sidebars = {} |
149 | 166 |
|
150 | 167 | # Additional templates that should be rendered to pages, maps page names to
|
151 | 168 | # template names.
|
152 |
| -#html_additional_pages = {} |
| 169 | +# html_additional_pages = {} |
153 | 170 |
|
154 | 171 | # If false, no module index is generated.
|
155 |
| -#html_domain_indices = True |
| 172 | +# html_domain_indices = True |
156 | 173 |
|
157 | 174 | # If false, no index is generated.
|
158 |
| -#html_use_index = True |
| 175 | +# html_use_index = True |
159 | 176 |
|
160 | 177 | # If true, the index is split into individual pages for each letter.
|
161 |
| -#html_split_index = False |
| 178 | +# html_split_index = False |
162 | 179 |
|
163 | 180 | # If true, links to the reST sources are added to the pages.
|
164 |
| -#html_show_sourcelink = True |
| 181 | +# html_show_sourcelink = True |
165 | 182 |
|
166 | 183 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
167 |
| -#html_show_sphinx = True |
| 184 | +# html_show_sphinx = True |
168 | 185 |
|
169 | 186 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
170 |
| -#html_show_copyright = True |
| 187 | +# html_show_copyright = True |
171 | 188 |
|
172 | 189 | # If true, an OpenSearch description file will be output, and all pages will
|
173 | 190 | # contain a <link> tag referring to it. The value of this option must be the
|
174 | 191 | # base URL from which the finished HTML is served.
|
175 |
| -#html_use_opensearch = '' |
| 192 | +# html_use_opensearch = '' |
176 | 193 |
|
177 | 194 | # This is the file name suffix for HTML files (e.g. ".xhtml").
|
178 |
| -#html_file_suffix = None |
| 195 | +# html_file_suffix = None |
179 | 196 |
|
180 | 197 | # Output file base name for HTML help builder.
|
181 |
| -htmlhelp_basename = 'Elasticsearchdoc' |
| 198 | +htmlhelp_basename = "Elasticsearchdoc" |
182 | 199 |
|
183 | 200 |
|
184 | 201 | # -- Options for LaTeX output --------------------------------------------------
|
185 | 202 |
|
186 | 203 | latex_elements = {
|
187 |
| -# The paper size ('letterpaper' or 'a4paper'). |
188 |
| -#'papersize': 'letterpaper', |
189 |
| - |
190 |
| -# The font size ('10pt', '11pt' or '12pt'). |
191 |
| -#'pointsize': '10pt', |
192 |
| - |
193 |
| -# Additional stuff for the LaTeX preamble. |
194 |
| -#'preamble': '', |
| 204 | + # The paper size ('letterpaper' or 'a4paper'). |
| 205 | + # 'papersize': 'letterpaper', |
| 206 | + # The font size ('10pt', '11pt' or '12pt'). |
| 207 | + # 'pointsize': '10pt', |
| 208 | + # Additional stuff for the LaTeX preamble. |
| 209 | + # 'preamble': '', |
195 | 210 | }
|
196 | 211 |
|
197 | 212 | # Grouping the document tree into LaTeX files. List of tuples
|
198 | 213 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
199 | 214 | latex_documents = [
|
200 |
| - ('index', 'Elasticsearch-dsl.tex', u'Elasticsearch DSL Documentation', |
201 |
| - u'Honza Král', 'manual'), |
| 215 | + ( |
| 216 | + "index", |
| 217 | + "Elasticsearch-dsl.tex", |
| 218 | + u"Elasticsearch DSL Documentation", |
| 219 | + u"Elasticsearch B.V", |
| 220 | + "manual", |
| 221 | + ), |
202 | 222 | ]
|
203 | 223 |
|
204 | 224 | # The name of an image file (relative to this directory) to place at the top of
|
205 | 225 | # the title page.
|
206 |
| -#latex_logo = None |
| 226 | +# latex_logo = None |
207 | 227 |
|
208 | 228 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
209 | 229 | # not chapters.
|
210 |
| -#latex_use_parts = False |
| 230 | +# latex_use_parts = False |
211 | 231 |
|
212 | 232 | # If true, show page references after internal links.
|
213 |
| -#latex_show_pagerefs = False |
| 233 | +# latex_show_pagerefs = False |
214 | 234 |
|
215 | 235 | # If true, show URL addresses after external links.
|
216 |
| -#latex_show_urls = False |
| 236 | +# latex_show_urls = False |
217 | 237 |
|
218 | 238 | # Documents to append as an appendix to all manuals.
|
219 |
| -#latex_appendices = [] |
| 239 | +# latex_appendices = [] |
220 | 240 |
|
221 | 241 | # If false, no module index is generated.
|
222 |
| -#latex_domain_indices = True |
| 242 | +# latex_domain_indices = True |
223 | 243 |
|
224 | 244 |
|
225 | 245 | # -- Options for manual page output --------------------------------------------
|
226 | 246 |
|
227 | 247 | # One entry per manual page. List of tuples
|
228 | 248 | # (source start file, name, description, authors, manual section).
|
229 | 249 | man_pages = [
|
230 |
| - ('index', 'elasticsearch-dsl', u'Elasticsearch DSL Documentation', |
231 |
| - [u'Honza Král'], 1) |
| 250 | + ( |
| 251 | + "index", |
| 252 | + "elasticsearch-dsl", |
| 253 | + u"Elasticsearch DSL Documentation", |
| 254 | + [u"Elasticsearch B.V"], |
| 255 | + 1, |
| 256 | + ) |
232 | 257 | ]
|
233 | 258 |
|
234 | 259 | # If true, show URL addresses after external links.
|
235 |
| -#man_show_urls = False |
| 260 | +# man_show_urls = False |
236 | 261 |
|
237 | 262 |
|
238 | 263 | # -- Options for Texinfo output ------------------------------------------------
|
|
241 | 266 | # (source start file, target name, title, author,
|
242 | 267 | # dir menu entry, description, category)
|
243 | 268 | texinfo_documents = [
|
244 |
| - ('index', 'Elasticsearch', u'Elasticsearch Documentation', |
245 |
| - u'Honza Král', 'Elasticsearch', 'One line description of project.', |
246 |
| - 'Miscellaneous'), |
| 269 | + ( |
| 270 | + "index", |
| 271 | + "Elasticsearch", |
| 272 | + u"Elasticsearch Documentation", |
| 273 | + u"Elasticsearch B.V", |
| 274 | + "Elasticsearch", |
| 275 | + "One line description of project.", |
| 276 | + "Miscellaneous", |
| 277 | + ), |
247 | 278 | ]
|
248 | 279 |
|
249 | 280 | # Documents to append as an appendix to all manuals.
|
250 |
| -#texinfo_appendices = [] |
| 281 | +# texinfo_appendices = [] |
251 | 282 |
|
252 | 283 | # If false, no module index is generated.
|
253 |
| -#texinfo_domain_indices = True |
| 284 | +# texinfo_domain_indices = True |
254 | 285 |
|
255 | 286 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
|
256 |
| -#texinfo_show_urls = 'footnote' |
| 287 | +# texinfo_show_urls = 'footnote' |
257 | 288 |
|
258 | 289 | # If true, do not generate a @detailmenu in the "Top" node's menu.
|
259 |
| -#texinfo_no_detailmenu = False |
| 290 | +# texinfo_no_detailmenu = False |
0 commit comments