|
20 | 20 | import os
|
21 | 21 | import sys
|
22 | 22 |
|
23 |
| -sys.path.insert(0, os.path.abspath('.')) |
24 |
| -sys.path.insert(0, os.path.abspath('../')) |
25 |
| -sys.path.insert(1, os.path.dirname(os.path.abspath('../')) + os.sep + 'feature_engine') |
| 23 | +sys.path.insert(0, os.path.abspath(".")) |
| 24 | +sys.path.insert(0, os.path.abspath("../")) |
| 25 | +sys.path.insert(1, os.path.dirname(os.path.abspath("../")) + os.sep + "feature_engine") |
26 | 26 |
|
27 | 27 | # -- General configuration ------------------------------------------------
|
28 | 28 |
|
|
33 | 33 | # Add any Sphinx extension module names here, as strings. They can be
|
34 | 34 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
35 | 35 | # ones.
|
36 |
| -extensions = ['sphinx.ext.autodoc', |
37 |
| - # 'sphinx.ext.doctest', |
38 |
| - 'sphinx.ext.intersphinx', |
39 |
| - 'sphinx.ext.todo', |
40 |
| - 'sphinx.ext.coverage', |
41 |
| - # 'sphinx.ext.mathjax', |
42 |
| - # 'sphinx.ext.ifconfig', |
43 |
| - 'sphinx.ext.viewcode', |
44 |
| - 'sphinx.ext.githubpages', |
45 |
| - # 'sphinx.ext.autosummary', |
46 |
| - 'sphinx.ext.napoleon', |
47 |
| - 'numpydoc' |
48 |
| - ] |
| 36 | +extensions = [ |
| 37 | + "sphinx.ext.autodoc", |
| 38 | + # 'sphinx.ext.doctest', |
| 39 | + "sphinx.ext.intersphinx", |
| 40 | + "sphinx.ext.todo", |
| 41 | + "sphinx.ext.coverage", |
| 42 | + # 'sphinx.ext.mathjax', |
| 43 | + # 'sphinx.ext.ifconfig', |
| 44 | + "sphinx.ext.viewcode", |
| 45 | + "sphinx.ext.githubpages", |
| 46 | + # 'sphinx.ext.autosummary', |
| 47 | + "sphinx.ext.napoleon", |
| 48 | + "numpydoc", |
| 49 | +] |
49 | 50 |
|
50 | 51 | numpydoc_show_class_members = False
|
51 | 52 |
|
|
54 | 55 | napoleon_use_ivar = False
|
55 | 56 |
|
56 | 57 | # Add any paths that contain templates here, relative to this directory.
|
57 |
| -templates_path = ['_templates'] |
| 58 | +templates_path = ["_templates"] |
58 | 59 |
|
59 | 60 | # The suffix(es) of source filenames.
|
60 | 61 | # You can specify multiple suffix as a list of string:
|
61 | 62 | #
|
62 | 63 | # source_suffix = ['.rst', '.md']
|
63 |
| -source_suffix = '.rst' |
| 64 | +source_suffix = ".rst" |
64 | 65 |
|
65 | 66 | # The master toctree document.
|
66 |
| -master_doc = 'index' |
| 67 | +master_doc = "index" |
67 | 68 |
|
68 | 69 | # General information about the project.
|
69 |
| -project = 'feature-engine' |
70 |
| -copyright = '2018-2020, Soledad Galli' |
71 |
| -author = 'Soledad Galli' |
| 70 | +project = "feature-engine" |
| 71 | +copyright = "2018-2020, Soledad Galli" |
| 72 | +author = "Soledad Galli" |
72 | 73 |
|
73 | 74 | # The version info for the project you're documenting, acts as replacement for
|
74 | 75 | # |version| and |release|, also used in various other places throughout the
|
75 | 76 | # built documents.
|
76 | 77 |
|
77 |
| -VERSION_PATH = '../feature_engine/VERSION' |
78 |
| -with open(VERSION_PATH, 'r') as version_file: |
| 78 | +VERSION_PATH = "../feature_engine/VERSION" |
| 79 | +with open(VERSION_PATH, "r") as version_file: |
79 | 80 | v = version_file.read().strip()
|
80 | 81 | #
|
81 | 82 | # The short X.Y version.
|
|
107 | 108 | show_authors = False
|
108 | 109 |
|
109 | 110 | # The name of the Pygments (syntax highlighting) style to use.
|
110 |
| -pygments_style = 'sphinx' |
| 111 | +pygments_style = "sphinx" |
111 | 112 |
|
112 | 113 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
113 | 114 | todo_include_todos = False
|
|
117 | 118 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
118 | 119 | # a list of builtin themes.
|
119 | 120 | #
|
120 |
| -html_theme = 'sphinx_rtd_theme' |
| 121 | +html_theme = "sphinx_rtd_theme" |
121 | 122 |
|
122 | 123 | # Theme options are theme-specific and customize the look and feel of a theme
|
123 | 124 | # further. For a list of options available for each theme, see the
|
|
129 | 130 | # relative to this directory. They are copied after the builtin static files,
|
130 | 131 | # so a file named "default.css" will overwrite the builtin "default.css".
|
131 | 132 | html_static_path = []
|
132 |
| -autoclass_content = 'both' |
| 133 | +autoclass_content = "both" |
133 | 134 |
|
134 | 135 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
135 | 136 | html_show_sphinx = True
|
|
140 | 141 | # -- Options for HTMLHelp output ------------------------------------------
|
141 | 142 |
|
142 | 143 | # Output file base name for HTML help builder.
|
143 |
| -htmlhelp_basename = 'feature_enginedoc' |
| 144 | +htmlhelp_basename = "feature_enginedoc" |
144 | 145 |
|
145 | 146 | # -- Options for LaTeX output ---------------------------------------------
|
146 | 147 |
|
147 | 148 | latex_elements = {
|
148 | 149 | # The paper size ('letterpaper' or 'a4paper').
|
149 | 150 | #
|
150 | 151 | # 'papersize': 'letterpaper',
|
151 |
| - |
152 | 152 | # The font size ('10pt', '11pt' or '12pt').
|
153 | 153 | #
|
154 | 154 | # 'pointsize': '10pt',
|
155 |
| - |
156 | 155 | # Additional stuff for the LaTeX preamble.
|
157 | 156 | #
|
158 | 157 | # 'preamble': '',
|
159 |
| - |
160 | 158 | # Latex figure (float) alignment
|
161 | 159 | #
|
162 | 160 | # 'figure_align': 'htbp',
|
|
166 | 164 | # (source start file, target name, title,
|
167 | 165 | # author, documentclass [howto, manual, or own class]).
|
168 | 166 | latex_documents = [
|
169 |
| - (master_doc, 'feature_engine.tex', 'feature\\_engine Documentation', |
170 |
| - 'Soledad Galli', 'manual'), |
| 167 | + ( |
| 168 | + master_doc, |
| 169 | + "feature_engine.tex", |
| 170 | + "feature\\_engine Documentation", |
| 171 | + "Soledad Galli", |
| 172 | + "manual", |
| 173 | + ), |
171 | 174 | ]
|
172 | 175 |
|
173 | 176 | # -- Options for manual page output ---------------------------------------
|
174 | 177 |
|
175 | 178 | # One entry per manual page. List of tuples
|
176 | 179 | # (source start file, name, description, authors, manual section).
|
177 | 180 | man_pages = [
|
178 |
| - (master_doc, 'feature_engine', 'feature_engine Documentation', |
179 |
| - [author], 1) |
| 181 | + (master_doc, "feature_engine", "feature_engine Documentation", [author], 1) |
180 | 182 | ]
|
181 | 183 |
|
182 | 184 | # -- Options for Texinfo output -------------------------------------------
|
|
185 | 187 | # (source start file, target name, title, author,
|
186 | 188 | # dir menu entry, description, category)
|
187 | 189 | texinfo_documents = [
|
188 |
| - (master_doc, 'feature_engine', 'feature_engine Documentation', |
189 |
| - author, 'feature_engine', 'One line description of project.', |
190 |
| - 'Miscellaneous'), |
| 190 | + ( |
| 191 | + master_doc, |
| 192 | + "feature_engine", |
| 193 | + "feature_engine Documentation", |
| 194 | + author, |
| 195 | + "feature_engine", |
| 196 | + "One line description of project.", |
| 197 | + "Miscellaneous", |
| 198 | + ), |
191 | 199 | ]
|
192 | 200 |
|
193 | 201 | # -- Options for Epub output ----------------------------------------------
|
|
208 | 216 | # epub_uid = ''
|
209 | 217 |
|
210 | 218 | # A list of files that should not be packed into the epub file.
|
211 |
| -epub_exclude_files = ['search.html'] |
| 219 | +epub_exclude_files = ["search.html"] |
212 | 220 |
|
213 | 221 | # Example configuration for intersphinx: refer to the Python standard library.
|
214 |
| -intersphinx_mapping = {'https://docs.python.org/': None} |
| 222 | +intersphinx_mapping = {"https://docs.python.org/": None} |
0 commit comments