|
21 | 21 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
22 | 22 |
|
23 | 23 | # for example.py
|
24 |
| -sys.path.insert(0, os.path.abspath('.')) |
| 24 | +sys.path.insert(0, os.path.abspath(".")) |
25 | 25 | # project root
|
26 |
| -sys.path.insert(0, os.path.abspath('..')) |
| 26 | +sys.path.insert(0, os.path.abspath("..")) |
27 | 27 |
|
28 |
| -os.environ['MPLBACKEND'] = 'Agg' # avoid tkinter import errors on rtfd.io |
| 28 | +os.environ["MPLBACKEND"] = "Agg" # avoid tkinter import errors on rtfd.io |
29 | 29 |
|
30 | 30 | # -- General configuration ---------------------------------------------------
|
31 | 31 |
|
|
36 | 36 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
37 | 37 | # ones.
|
38 | 38 | extensions = [
|
39 |
| - 'sphinx.ext.autodoc', |
40 |
| - 'sphinx.ext.autosummary', |
41 |
| - 'sphinx.ext.doctest', |
42 |
| - 'sphinx.ext.intersphinx', |
43 |
| - 'sphinx.ext.todo', |
44 |
| - 'numpydoc', |
45 |
| - 'sphinx.ext.ifconfig', |
46 |
| - 'sphinx.ext.viewcode', |
47 |
| - 'sphinx.ext.imgmath', |
| 39 | + "sphinx.ext.autodoc", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | + "sphinx.ext.doctest", |
| 42 | + "sphinx.ext.intersphinx", |
| 43 | + "sphinx.ext.todo", |
| 44 | + "numpydoc", |
| 45 | + "sphinx.ext.ifconfig", |
| 46 | + "sphinx.ext.viewcode", |
| 47 | + "sphinx.ext.imgmath", |
48 | 48 | ]
|
49 | 49 |
|
50 | 50 | # Add any paths that contain templates here, relative to this directory.
|
51 |
| -templates_path = ['_templates'] |
| 51 | +templates_path = ["_templates"] |
52 | 52 |
|
53 | 53 | # The suffix of source filenames.
|
54 |
| -source_suffix = '.rst' |
| 54 | +source_suffix = ".rst" |
55 | 55 |
|
56 | 56 | # The encoding of source files.
|
57 | 57 | # source_encoding = 'utf-8-sig'
|
58 | 58 |
|
59 | 59 | # The root toctree document
|
60 |
| -master_doc = 'index' # NOTE: will be changed to `root_doc` in sphinx 4 |
| 60 | +master_doc = "index" # NOTE: will be changed to `root_doc` in sphinx 4 |
61 | 61 |
|
62 | 62 | # General information about the project.
|
63 |
| -project = 'numpydoc' |
64 |
| -copyright = f'2019-{date.today().year}, numpydoc maintainers' |
| 63 | +project = "numpydoc" |
| 64 | +copyright = f"2019-{date.today().year}, numpydoc maintainers" |
65 | 65 |
|
66 | 66 | # The version info for the project you're documenting, acts as replacement for
|
67 | 67 | # |version| and |release|, also used in various other places throughout the
|
|
70 | 70 | # The short X.Y version.
|
71 | 71 |
|
72 | 72 | import numpydoc
|
| 73 | + |
73 | 74 | # version = .__version__
|
74 | 75 | # The full version, including alpha/beta/rc tags.
|
75 | 76 | release = numpydoc.__version__
|
76 | 77 | version = numpydoc.__version__
|
77 | 78 | numpydoc_xref_param_type = True
|
78 |
| -numpydoc_xref_ignore = {'optional', 'type_without_description', 'BadException'} |
| 79 | +numpydoc_xref_ignore = {"optional", "type_without_description", "BadException"} |
79 | 80 | # Run docstring validation as part of build process
|
80 | 81 | numpydoc_validation_checks = {"all", "GL01", "SA04", "RT03"}
|
81 | 82 |
|
|
91 | 92 |
|
92 | 93 | # List of patterns, relative to source directory, that match files and
|
93 | 94 | # directories to ignore when looking for source files.
|
94 |
| -exclude_patterns = ['_build'] |
| 95 | +exclude_patterns = ["_build"] |
95 | 96 |
|
96 | 97 | # The reST default role (used for this markup: `text`) to use for all
|
97 | 98 | # documents.
|
|
109 | 110 | # show_authors = False
|
110 | 111 |
|
111 | 112 | # The name of the Pygments (syntax highlighting) style to use.
|
112 |
| -pygments_style = 'sphinx' |
| 113 | +pygments_style = "sphinx" |
113 | 114 |
|
114 | 115 | # A list of ignored prefixes for module index sorting.
|
115 | 116 | # modindex_common_prefix = []
|
|
134 | 135 | }
|
135 | 136 |
|
136 | 137 | html_title = f"{project} v{version} Manual"
|
137 |
| -html_last_updated_fmt = '%b %d, %Y' |
| 138 | +html_last_updated_fmt = "%b %d, %Y" |
138 | 139 |
|
139 | 140 | # Add any paths that contain custom static files (such as style sheets) here,
|
140 | 141 | # relative to this directory. They are copied after the builtin static files,
|
|
188 | 189 | # html_file_suffix = None
|
189 | 190 |
|
190 | 191 | # Output file base name for HTML help builder.
|
191 |
| -htmlhelp_basename = 'project-templatedoc' |
| 192 | +htmlhelp_basename = "project-templatedoc" |
192 | 193 |
|
193 | 194 |
|
194 | 195 | # -- Options for LaTeX output ---------------------------------------------
|
195 | 196 |
|
196 | 197 | latex_elements = {
|
197 | 198 | # The paper size ('letterpaper' or 'a4paper').
|
198 | 199 | # 'papersize': 'letterpaper',
|
199 |
| - |
200 | 200 | # The font size ('10pt', '11pt' or '12pt').
|
201 | 201 | # 'pointsize': '10pt',
|
202 |
| - |
203 | 202 | # Additional stuff for the LaTeX preamble.
|
204 | 203 | # 'preamble': '',
|
205 | 204 | }
|
|
208 | 207 | # (source start file, target name, title,
|
209 | 208 | # author, documentclass [howto, manual, or own class]).
|
210 | 209 | latex_documents = [
|
211 |
| - ('index', 'numpydoc.tex', 'numpydoc Documentation', |
212 |
| - 'Numpydoc maintainers', 'manual'), |
| 210 | + ( |
| 211 | + "index", |
| 212 | + "numpydoc.tex", |
| 213 | + "numpydoc Documentation", |
| 214 | + "Numpydoc maintainers", |
| 215 | + "manual", |
| 216 | + ), |
213 | 217 | ]
|
214 | 218 |
|
215 | 219 | # The name of an image file (relative to this directory) to place at the top of
|
|
247 | 251 |
|
248 | 252 | # Example configuration for intersphinx: refer to the Python standard library.
|
249 | 253 | intersphinx_mapping = {
|
250 |
| - 'python': ('https://docs.python.org/3/', None), |
251 |
| - 'numpy': ('https://numpy.org/devdocs/', None), |
252 |
| - 'sklearn': ('https://scikit-learn.org/stable/', None), |
| 254 | + "python": ("https://docs.python.org/3/", None), |
| 255 | + "numpy": ("https://numpy.org/devdocs/", None), |
| 256 | + "sklearn": ("https://scikit-learn.org/stable/", None), |
253 | 257 | }
|
0 commit comments