|
3 | 3 | # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. |
4 | 4 | # See the LICENSE file in the project root for more information |
5 | 5 |
|
6 | | -import os |
7 | 6 | import datetime |
| 7 | + |
8 | 8 | import elasticsearch |
9 | 9 |
|
10 | 10 | # If extensions (or modules to document with autodoc) are in another directory, |
|
36 | 36 | master_doc = "index" |
37 | 37 |
|
38 | 38 | # General information about the project. |
39 | | -project = u"Elasticsearch" |
40 | | -copyright = u"%d, Elasticsearch B.V" % datetime.date.today().year |
| 39 | +project = "Elasticsearch" |
| 40 | +copyright = "%d, Elasticsearch B.V" % datetime.date.today().year |
41 | 41 |
|
42 | 42 | # The version info for the project you're documenting, acts as replacement for |
43 | 43 | # |version| and |release|, also used in various other places throughout the |
|
91 | 91 | # The theme to use for HTML and HTML Help pages. See the documentation for |
92 | 92 | # a list of builtin themes. |
93 | 93 |
|
94 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
95 | | - |
96 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
97 | | - import sphinx_rtd_theme |
98 | | - |
99 | | - html_theme = "sphinx_rtd_theme" |
100 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 94 | +html_theme = "sphinx_rtd_theme" |
101 | 95 |
|
102 | 96 | # Theme options are theme-specific and customize the look and feel of a theme |
103 | 97 | # further. For a list of options available for each theme, see the |
|
194 | 188 | ( |
195 | 189 | "index", |
196 | 190 | "Elasticsearch.tex", |
197 | | - u"Elasticsearch Documentation", |
198 | | - u"Honza Král", |
| 191 | + "Elasticsearch Documentation", |
| 192 | + "Honza Král", |
199 | 193 | "manual", |
200 | 194 | ) |
201 | 195 | ] |
|
226 | 220 | # One entry per manual page. List of tuples |
227 | 221 | # (source start file, name, description, authors, manual section). |
228 | 222 | man_pages = [ |
229 | | - ("index", "elasticsearch-py", u"Elasticsearch Documentation", [u"Honza Král"], 1) |
| 223 | + ("index", "elasticsearch-py", "Elasticsearch Documentation", ["Honza Král"], 1) |
230 | 224 | ] |
231 | 225 |
|
232 | 226 | # If true, show URL addresses after external links. |
|
242 | 236 | ( |
243 | 237 | "index", |
244 | 238 | "Elasticsearch", |
245 | | - u"Elasticsearch Documentation", |
246 | | - u"Honza Král", |
| 239 | + "Elasticsearch Documentation", |
| 240 | + "Honza Král", |
247 | 241 | "Elasticsearch", |
248 | 242 | "One line description of project.", |
249 | 243 | "Miscellaneous", |
|
0 commit comments