|
11 | 11 | # If extensions (or modules to document with autodoc) are in another directory, |
12 | 12 | # add these directories to sys.path here. If the directory is relative to the |
13 | 13 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
14 | | -# |
| 14 | +"""Configuration file for the Sphinx documentation builder.""" |
15 | 15 | import os |
16 | 16 | import sys |
17 | | -sys.path.insert(0, os.path.abspath('.')) |
18 | | -sys.path.insert(0, os.path.abspath('../')) |
| 17 | + |
| 18 | +sys.path.insert(0, os.path.abspath(".")) |
| 19 | +sys.path.insert(0, os.path.abspath("../")) |
19 | 20 |
|
20 | 21 |
|
21 | 22 | # -- Project information ----------------------------------------------------- |
22 | 23 |
|
23 | | -project = 'Prometheus Client API Python' |
24 | | -copyright = '2019, Anand Sanmukhani' |
25 | | -author = 'Anand Sanmukhani' |
| 24 | +project = "Prometheus Client API Python" |
| 25 | +copyright = "2019, Anand Sanmukhani" |
| 26 | +author = "Anand Sanmukhani" |
26 | 27 |
|
27 | 28 | # The short X.Y version |
28 | | -version = '' |
| 29 | +version = "" |
29 | 30 | # The full version, including alpha/beta/rc tags |
30 | | -release = '0.0.1' |
| 31 | +release = "0.0.1" |
31 | 32 |
|
32 | 33 |
|
33 | 34 | # -- General configuration --------------------------------------------------- |
|
40 | 41 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
41 | 42 | # ones. |
42 | 43 | extensions = [ |
43 | | - 'sphinx.ext.autodoc', |
44 | | - 'sphinx.ext.doctest', |
45 | | - 'sphinx.ext.intersphinx', |
46 | | - 'sphinx.ext.todo', |
47 | | - 'sphinx.ext.coverage', |
48 | | - 'sphinx.ext.viewcode', |
49 | | - 'sphinx.ext.githubpages', |
| 44 | + "sphinx.ext.autodoc", |
| 45 | + "sphinx.ext.doctest", |
| 46 | + "sphinx.ext.intersphinx", |
| 47 | + "sphinx.ext.todo", |
| 48 | + "sphinx.ext.coverage", |
| 49 | + "sphinx.ext.viewcode", |
| 50 | + "sphinx.ext.githubpages", |
50 | 51 | ] |
51 | 52 |
|
52 | 53 | # Add any paths that contain templates here, relative to this directory. |
53 | | -templates_path = ['_templates'] |
| 54 | +templates_path = ["_templates"] |
54 | 55 |
|
55 | 56 | # The suffix(es) of source filenames. |
56 | 57 | # You can specify multiple suffix as a list of string: |
57 | 58 | # |
58 | 59 | # source_suffix = ['.rst', '.md'] |
59 | | -source_suffix = '.rst' |
| 60 | +source_suffix = ".rst" |
60 | 61 |
|
61 | 62 | # The master toctree document. |
62 | | -master_doc = 'index' |
| 63 | +master_doc = "index" |
63 | 64 |
|
64 | 65 | # The language for content autogenerated by Sphinx. Refer to documentation |
65 | 66 | # for a list of supported languages. |
|
71 | 72 | # List of patterns, relative to source directory, that match files and |
72 | 73 | # directories to ignore when looking for source files. |
73 | 74 | # This pattern also affects html_static_path and html_extra_path. |
74 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 75 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
75 | 76 |
|
76 | 77 | # The name of the Pygments (syntax highlighting) style to use. |
77 | 78 | pygments_style = None |
|
82 | 83 | # The theme to use for HTML and HTML Help pages. See the documentation for |
83 | 84 | # a list of builtin themes. |
84 | 85 | # |
85 | | -html_theme = 'sphinx_rtd_theme' |
| 86 | +html_theme = "sphinx_rtd_theme" |
86 | 87 |
|
87 | 88 | # Theme options are theme-specific and customize the look and feel of a theme |
88 | 89 | # further. For a list of options available for each theme, see the |
|
93 | 94 | # Add any paths that contain custom static files (such as style sheets) here, |
94 | 95 | # relative to this directory. They are copied after the builtin static files, |
95 | 96 | # so a file named "default.css" will overwrite the builtin "default.css". |
96 | | -html_static_path = ['_static'] |
| 97 | +html_static_path = ["_static"] |
97 | 98 |
|
98 | 99 | # Custom sidebar templates, must be a dictionary that maps document names |
99 | 100 | # to template names. |
|
109 | 110 | # -- Options for HTMLHelp output --------------------------------------------- |
110 | 111 |
|
111 | 112 | # Output file base name for HTML help builder. |
112 | | -htmlhelp_basename = 'PrometheusClientAPIPythondoc' |
| 113 | +htmlhelp_basename = "PrometheusClientAPIPythondoc" |
113 | 114 |
|
114 | 115 |
|
115 | 116 | # -- Options for LaTeX output ------------------------------------------------ |
|
118 | 119 | # The paper size ('letterpaper' or 'a4paper'). |
119 | 120 | # |
120 | 121 | # 'papersize': 'letterpaper', |
121 | | - |
122 | 122 | # The font size ('10pt', '11pt' or '12pt'). |
123 | 123 | # |
124 | 124 | # 'pointsize': '10pt', |
125 | | - |
126 | 125 | # Additional stuff for the LaTeX preamble. |
127 | 126 | # |
128 | 127 | # 'preamble': '', |
129 | | - |
130 | 128 | # Latex figure (float) alignment |
131 | 129 | # |
132 | 130 | # 'figure_align': 'htbp', |
|
136 | 134 | # (source start file, target name, title, |
137 | 135 | # author, documentclass [howto, manual, or own class]). |
138 | 136 | latex_documents = [ |
139 | | - (master_doc, 'PrometheusClientAPIPython.tex', 'Prometheus Client API Python Documentation', |
140 | | - 'Anand Sanmukhani', 'manual'), |
| 137 | + ( |
| 138 | + master_doc, |
| 139 | + "PrometheusClientAPIPython.tex", |
| 140 | + "Prometheus Client API Python Documentation", |
| 141 | + "Anand Sanmukhani", |
| 142 | + "manual", |
| 143 | + ) |
141 | 144 | ] |
142 | 145 |
|
143 | 146 |
|
|
146 | 149 | # One entry per manual page. List of tuples |
147 | 150 | # (source start file, name, description, authors, manual section). |
148 | 151 | man_pages = [ |
149 | | - (master_doc, 'prometheusclientapipython', 'Prometheus Client API Python Documentation', |
150 | | - [author], 1) |
| 152 | + ( |
| 153 | + master_doc, |
| 154 | + "prometheusclientapipython", |
| 155 | + "Prometheus Client API Python Documentation", |
| 156 | + [author], |
| 157 | + 1, |
| 158 | + ) |
151 | 159 | ] |
152 | 160 |
|
153 | 161 |
|
|
157 | 165 | # (source start file, target name, title, author, |
158 | 166 | # dir menu entry, description, category) |
159 | 167 | texinfo_documents = [ |
160 | | - (master_doc, 'PrometheusClientAPIPython', 'Prometheus Client API Python Documentation', |
161 | | - author, 'PrometheusClientAPIPython', 'One line description of project.', |
162 | | - 'Miscellaneous'), |
| 168 | + ( |
| 169 | + master_doc, |
| 170 | + "PrometheusClientAPIPython", |
| 171 | + "Prometheus Client API Python Documentation", |
| 172 | + author, |
| 173 | + "PrometheusClientAPIPython", |
| 174 | + "One line description of project.", |
| 175 | + "Miscellaneous", |
| 176 | + ) |
163 | 177 | ] |
164 | 178 |
|
165 | 179 |
|
|
178 | 192 | # epub_uid = '' |
179 | 193 |
|
180 | 194 | # A list of files that should not be packed into the epub file. |
181 | | -epub_exclude_files = ['search.html'] |
| 195 | +epub_exclude_files = ["search.html"] |
182 | 196 |
|
183 | 197 |
|
184 | 198 | # -- Extension configuration ------------------------------------------------- |
185 | 199 |
|
186 | 200 | # -- Options for intersphinx extension --------------------------------------- |
187 | 201 |
|
188 | 202 | # Example configuration for intersphinx: refer to the Python standard library. |
189 | | -intersphinx_mapping = {'https://docs.python.org/': None} |
| 203 | +intersphinx_mapping = {"https://docs.python.org/": None} |
190 | 204 |
|
191 | 205 | # -- Options for todo extension ---------------------------------------------- |
192 | 206 |
|
|
0 commit comments