|
18 | 18 | # If extensions (or modules to document with autodoc) are in another directory, |
19 | 19 | # add these directories to sys.path here. If the directory is relative to the |
20 | 20 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
21 | | -sys.path.insert(0, os.path.abspath('..')) |
| 21 | +sys.path.insert(0, os.path.abspath("..")) |
22 | 22 |
|
23 | 23 | # -- General configuration ------------------------------------------------ |
24 | 24 |
|
|
29 | 29 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
30 | 30 | # ones. |
31 | 31 | extensions = [ |
32 | | - 'sphinx.ext.autodoc', |
33 | | - 'sphinx.ext.autosummary', |
34 | | - 'sphinx.ext.napoleon', |
35 | | - 'sphinx.ext.viewcode', |
36 | | - 'sphinx.ext.autosectionlabel', |
| 32 | + "sphinx.ext.autodoc", |
| 33 | + "sphinx.ext.autosummary", |
| 34 | + "sphinx.ext.napoleon", |
| 35 | + "sphinx.ext.viewcode", |
| 36 | + "sphinx.ext.autosectionlabel", |
37 | 37 | ] |
38 | 38 |
|
39 | 39 | autodoc_default_options = { |
40 | | - 'members': None, |
41 | | - 'undoc-members': None, |
42 | | - 'show-inheritance': None, |
| 40 | + "members": None, |
| 41 | + "undoc-members": None, |
| 42 | + "show-inheritance": None, |
43 | 43 | } |
44 | 44 |
|
45 | 45 | # Autosummary on |
|
49 | 49 | autosectionlabel_prefix_document = True |
50 | 50 |
|
51 | 51 | # Add any paths that contain templates here, relative to this directory. |
52 | | -templates_path = ['_templates'] |
| 52 | +templates_path = ["_templates"] |
53 | 53 |
|
54 | 54 | # The suffix(es) of source filenames. |
55 | 55 | # You can specify multiple suffix as a list of string: |
56 | 56 | # source_suffix = ['.rst', '.md'] |
57 | | -source_suffix = '.rst' |
| 57 | +source_suffix = ".rst" |
58 | 58 |
|
59 | 59 | # The encoding of source files. |
60 | 60 | # source_encoding = 'utf-8-sig' |
61 | 61 |
|
62 | 62 | # The master toctree document. |
63 | | -master_doc = 'index' |
| 63 | +master_doc = "index" |
64 | 64 |
|
65 | 65 | # General information about the project. |
66 | | -project = u'Hazelcast Python Client' |
67 | | -copyright = u'2020, Hazelcast Inc.' |
68 | | -author = u'Hazelcast Inc. Developers' |
| 66 | +project = u"Hazelcast Python Client" |
| 67 | +copyright = u"2020, Hazelcast Inc." |
| 68 | +author = u"Hazelcast Inc. Developers" |
69 | 69 |
|
70 | 70 | # The version info for the project you're documenting, acts as replacement for |
71 | 71 | # |version| and |release|, also used in various other places throughout the |
72 | 72 | # built documents. |
73 | 73 | # |
74 | 74 | # The short X.Y version. |
75 | | -version = '4.0.0' |
| 75 | +version = "4.0.0" |
76 | 76 | # The full version, including alpha/beta/rc tags. |
77 | | -release = '4.0.0b1' |
| 77 | +release = "4.0.0b1" |
78 | 78 |
|
79 | | -autodoc_member_order = 'bysource' |
80 | | -autoclass_content = 'both' |
| 79 | +autodoc_member_order = "bysource" |
| 80 | +autoclass_content = "both" |
81 | 81 |
|
82 | 82 | # The language for content autogenerated by Sphinx. Refer to documentation |
83 | 83 | # for a list of supported languages. |
|
95 | 95 | # List of patterns, relative to source directory, that match files and |
96 | 96 | # directories to ignore when looking for source files. |
97 | 97 | # This patterns also effect to html_static_path and html_extra_path |
98 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 98 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
99 | 99 |
|
100 | 100 | # The reST default role (used for this markup: `text`) to use for all |
101 | 101 | # documents. |
|
113 | 113 | # show_authors = False |
114 | 114 |
|
115 | 115 | # The name of the Pygments (syntax highlighting) style to use. |
116 | | -pygments_style = 'sphinx' |
| 116 | +pygments_style = "sphinx" |
117 | 117 |
|
118 | 118 | # A list of ignored prefixes for module index sorting. |
119 | 119 | # modindex_common_prefix = [] |
|
128 | 128 |
|
129 | 129 | # The theme to use for HTML and HTML Help pages. See the documentation for |
130 | 130 | # a list of builtin themes. |
131 | | -html_theme = 'default' |
| 131 | +html_theme = "default" |
132 | 132 |
|
133 | 133 | # Theme options are theme-specific and customize the look and feel of a theme |
134 | 134 | # further. For a list of options available for each theme, see the |
|
222 | 222 | # html_search_scorer = 'scorer.js' |
223 | 223 |
|
224 | 224 | # Output file base name for HTML help builder. |
225 | | -htmlhelp_basename = 'hazelcast-python-clientdoc' |
| 225 | +htmlhelp_basename = "hazelcast-python-clientdoc" |
226 | 226 |
|
227 | 227 | # -- Options for LaTeX output --------------------------------------------- |
228 | 228 |
|
229 | 229 | latex_elements = { |
230 | 230 | # The paper size ('letterpaper' or 'a4paper'). |
231 | 231 | # 'papersize': 'letterpaper', |
232 | | - |
233 | 232 | # The font size ('10pt', '11pt' or '12pt'). |
234 | 233 | # 'pointsize': '10pt', |
235 | | - |
236 | 234 | # Additional stuff for the LaTeX preamble. |
237 | 235 | # 'preamble': '', |
238 | | - |
239 | 236 | # Latex figure (float) alignment |
240 | 237 | # 'figure_align': 'htbp', |
241 | 238 | } |
|
244 | 241 | # (source start file, target name, title, |
245 | 242 | # author, documentclass [howto, manual, or own class]). |
246 | 243 | latex_documents = [ |
247 | | - (master_doc, 'hazelcast-python-client.tex', u'Hazelcast Python Client Documentation', |
248 | | - author, 'manual'), |
| 244 | + ( |
| 245 | + master_doc, |
| 246 | + "hazelcast-python-client.tex", |
| 247 | + u"Hazelcast Python Client Documentation", |
| 248 | + author, |
| 249 | + "manual", |
| 250 | + ), |
249 | 251 | ] |
250 | 252 |
|
251 | 253 | # The name of an image file (relative to this directory) to place at the top of |
|
274 | 276 | # One entry per manual page. List of tuples |
275 | 277 | # (source start file, name, description, authors, manual section). |
276 | 278 | man_pages = [ |
277 | | - (master_doc, 'hazelcast-python-client', u'Hazelcast Python Client Documentation', |
278 | | - [author], 1) |
| 279 | + (master_doc, "hazelcast-python-client", u"Hazelcast Python Client Documentation", [author], 1) |
279 | 280 | ] |
280 | 281 |
|
281 | 282 | # If true, show URL addresses after external links. |
|
288 | 289 | # (source start file, target name, title, author, |
289 | 290 | # dir menu entry, description, category) |
290 | 291 | texinfo_documents = [ |
291 | | - (master_doc, 'hazelcast-python-client', u'Hazelcast Python Client Documentation', |
292 | | - author, 'hazelcast-python-client', 'One line description of project.', |
293 | | - 'Miscellaneous'), |
| 292 | + ( |
| 293 | + master_doc, |
| 294 | + "hazelcast-python-client", |
| 295 | + u"Hazelcast Python Client Documentation", |
| 296 | + author, |
| 297 | + "hazelcast-python-client", |
| 298 | + "One line description of project.", |
| 299 | + "Miscellaneous", |
| 300 | + ), |
294 | 301 | ] |
295 | 302 |
|
296 | 303 | # Documents to append as an appendix to all manuals. |
|
305 | 312 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
306 | 313 | # texinfo_no_detailmenu = False |
307 | 314 |
|
308 | | -on_rtd = os.environ.get('READTHEDOCS') == 'True' |
| 315 | +on_rtd = os.environ.get("READTHEDOCS") == "True" |
309 | 316 |
|
310 | 317 | if not on_rtd: |
311 | 318 | # If we are building locally, import the RTD theme |
312 | 319 | # and use it |
313 | | - |
314 | | - import sphinx_rtd_theme |
315 | | - extensions.append('sphinx_rtd_theme') |
316 | | - html_theme = 'sphinx_rtd_theme' |
| 320 | + extensions.append("sphinx_rtd_theme") |
| 321 | + html_theme = "sphinx_rtd_theme" |
0 commit comments