|
20 | 20 | import sys |
21 | 21 | from datetime import datetime |
22 | 22 |
|
23 | | -sys.path.insert(0, os.path.abspath('..')) |
| 23 | +sys.path.insert(0, os.path.abspath("..")) |
24 | 24 |
|
25 | 25 | # -- General configuration ------------------------------------------------ |
26 | 26 |
|
|
31 | 31 | # Add any Sphinx extension module names here, as strings. They can be |
32 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
33 | 33 | # ones. |
34 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosectionlabel', 'sphinx.ext.graphviz', |
35 | | - 'sphinx.ext.inheritance_diagram', 'sphinx.ext.viewcode', 'sphinx.ext.autosummary', |
36 | | - 'sphinx.ext.githubpages', 'sphinx.ext.napoleon', 'sphinx_rtd_theme'] |
| 34 | +extensions = [ |
| 35 | + "sphinx.ext.autodoc", |
| 36 | + "sphinx.ext.autosectionlabel", |
| 37 | + "sphinx.ext.graphviz", |
| 38 | + "sphinx.ext.inheritance_diagram", |
| 39 | + "sphinx.ext.viewcode", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | + "sphinx.ext.githubpages", |
| 42 | + "sphinx.ext.napoleon", |
| 43 | + "sphinx_rtd_theme", |
| 44 | +] |
37 | 45 |
|
38 | 46 | # Add any paths that contain templates here, relative to this directory. |
39 | | -templates_path = ['_templates'] |
| 47 | +templates_path = ["_templates"] |
40 | 48 |
|
41 | 49 | # The suffix(es) of source filenames. |
42 | 50 | # You can specify multiple suffix as a list of string: |
43 | 51 | # |
44 | 52 | # source_suffix = ['.rst', '.md'] |
45 | | -source_suffix = '.rst' |
| 53 | +source_suffix = ".rst" |
46 | 54 |
|
47 | 55 | # The master toctree document. |
48 | | -master_doc = 'index' |
| 56 | +master_doc = "index" |
49 | 57 |
|
50 | 58 | # General information about the project. |
51 | | -project = u'Sysdig SDK for Python' |
52 | | -copyright = f'2016-{datetime.now().year}, Sysdig Inc.' |
53 | | -author = u'Sysdig Inc.' |
| 59 | +project = "Sysdig SDK for Python" |
| 60 | +copyright = f"2016-{datetime.now().year}, Sysdig Inc." |
| 61 | +author = "Sysdig Inc." |
54 | 62 |
|
55 | 63 | # The version info for the project you're documenting, acts as replacement for |
56 | 64 | # |version| and |release|, also used in various other places throughout the |
57 | 65 | # built documents. |
58 | 66 | # |
59 | 67 | # The short X.Y version. |
60 | | -version = u'' |
| 68 | +version = "" |
61 | 69 | # The full version, including alpha/beta/rc tags. |
62 | | -release = u'' |
| 70 | +release = "" |
63 | 71 |
|
64 | 72 | # The language for content autogenerated by Sphinx. Refer to documentation |
65 | 73 | # for a list of supported languages. |
|
71 | 79 | # List of patterns, relative to source directory, that match files and |
72 | 80 | # directories to ignore when looking for source files. |
73 | 81 | # This patterns also effect to html_static_path and html_extra_path |
74 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 82 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
75 | 83 |
|
76 | 84 | # The name of the Pygments (syntax highlighting) style to use. |
77 | | -pygments_style = 'sphinx' |
| 85 | +pygments_style = "sphinx" |
78 | 86 |
|
79 | 87 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
80 | 88 | todo_include_todos = False |
|
84 | 92 | # The theme to use for HTML and HTML Help pages. See the documentation for |
85 | 93 | # a list of builtin themes. |
86 | 94 | # |
87 | | -html_theme = 'sphinx_rtd_theme' |
| 95 | +html_theme = "sphinx_rtd_theme" |
88 | 96 |
|
89 | 97 | # Theme options are theme-specific and customize the look and feel of a theme |
90 | 98 | # further. For a list of options available for each theme, see the |
|
100 | 108 | # -- Options for HTMLHelp output ------------------------------------------ |
101 | 109 |
|
102 | 110 | # Output file base name for HTML help builder. |
103 | | -htmlhelp_basename = 'python-sdc-clientdoc' |
| 111 | +htmlhelp_basename = "python-sdc-clientdoc" |
104 | 112 |
|
105 | 113 | # -- Options for LaTeX output --------------------------------------------- |
106 | 114 |
|
107 | 115 | latex_elements = { |
108 | 116 | # The paper size ('letterpaper' or 'a4paper'). |
109 | 117 | # |
110 | 118 | # 'papersize': 'letterpaper', |
111 | | - |
112 | 119 | # The font size ('10pt', '11pt' or '12pt'). |
113 | 120 | # |
114 | 121 | # 'pointsize': '10pt', |
115 | | - |
116 | 122 | # Additional stuff for the LaTeX preamble. |
117 | 123 | # |
118 | 124 | # 'preamble': '', |
119 | | - |
120 | 125 | # Latex figure (float) alignment |
121 | 126 | # |
122 | 127 | # 'figure_align': 'htbp', |
|
126 | 131 | # (source start file, target name, title, |
127 | 132 | # author, documentclass [howto, manual, or own class]). |
128 | 133 | latex_documents = [ |
129 | | - (master_doc, 'python-sdc-client.tex', u'python-sdc-client Documentation', |
130 | | - u'Sysdig Inc.', 'manual'), |
| 134 | + ( |
| 135 | + master_doc, |
| 136 | + "python-sdc-client.tex", |
| 137 | + "python-sdc-client Documentation", |
| 138 | + "Sysdig Inc.", |
| 139 | + "manual", |
| 140 | + ), |
131 | 141 | ] |
132 | 142 |
|
133 | 143 | # -- Options for manual page output --------------------------------------- |
134 | 144 |
|
135 | 145 | # One entry per manual page. List of tuples |
136 | 146 | # (source start file, name, description, authors, manual section). |
137 | 147 | man_pages = [ |
138 | | - (master_doc, 'python-sdc-client', u'python-sdc-client Documentation', |
139 | | - [author], 1) |
| 148 | + (master_doc, "python-sdc-client", "python-sdc-client Documentation", [author], 1) |
140 | 149 | ] |
141 | 150 |
|
142 | 151 | # -- Options for Texinfo output ------------------------------------------- |
|
145 | 154 | # (source start file, target name, title, author, |
146 | 155 | # dir menu entry, description, category) |
147 | 156 | texinfo_documents = [ |
148 | | - (master_doc, 'python-sdc-client', u'python-sdc-client Documentation', |
149 | | - author, 'python-sdc-client', 'One line description of project.', |
150 | | - 'Miscellaneous'), |
| 157 | + ( |
| 158 | + master_doc, |
| 159 | + "python-sdc-client", |
| 160 | + "python-sdc-client Documentation", |
| 161 | + author, |
| 162 | + "python-sdc-client", |
| 163 | + "One line description of project.", |
| 164 | + "Miscellaneous", |
| 165 | + ), |
151 | 166 | ] |
152 | 167 |
|
153 | 168 | # Napoleon settings |
|
0 commit comments