|
23 | 23 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
24 | 24 | # sys.path.insert(0, os.path.abspath('.')# ) |
25 | 25 |
|
26 | | -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) |
27 | | -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..')) |
| 26 | +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) |
| 27 | +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) |
28 | 28 |
|
29 | 29 | # -- General configuration ------------------------------------------------ |
30 | 30 |
|
|
35 | 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
36 | 36 | # ones. |
37 | 37 | extensions = [ |
38 | | - 'sphinx.ext.autodoc', |
39 | | - 'sphinx.ext.autosummary', |
40 | | - 'sphinx.ext.doctest', |
41 | | - 'sphinx.ext.coverage', |
42 | | - 'sphinx.ext.mathjax', |
43 | | - 'sphinx.ext.ifconfig', |
44 | | - 'sphinx.ext.autosectionlabel', |
45 | | - 'sphinx_gallery.gen_gallery', |
46 | | - 'numpydoc' |
| 38 | + "sphinx.ext.autodoc", |
| 39 | + "sphinx.ext.autosummary", |
| 40 | + "sphinx.ext.doctest", |
| 41 | + "sphinx.ext.coverage", |
| 42 | + "sphinx.ext.mathjax", |
| 43 | + "sphinx.ext.ifconfig", |
| 44 | + "sphinx.ext.autosectionlabel", |
| 45 | + "sphinx_gallery.gen_gallery", |
| 46 | + "numpydoc", |
47 | 47 | ] |
48 | 48 |
|
49 | 49 | autosummary_generate = True |
50 | 50 | numpydoc_show_class_members = False |
51 | 51 |
|
52 | | -autodoc_default_flags = ['members', 'inherited-members'] |
| 52 | +autodoc_default_flags = ["members", "inherited-members"] |
53 | 53 |
|
54 | 54 | # Add any paths that contain templates here, relative to this directory. |
55 | | -templates_path = ['_templates'] |
| 55 | +templates_path = ["_templates"] |
56 | 56 |
|
57 | 57 | # The suffix of source filenames. |
58 | | -source_suffix = '.rst' |
| 58 | +source_suffix = ".rst" |
59 | 59 |
|
60 | 60 | # The encoding of source files. |
61 | 61 | # source_encoding = 'utf-8-sig' |
62 | 62 |
|
63 | 63 | # The master toctree document. |
64 | | -master_doc = 'index' |
| 64 | +master_doc = "index" |
65 | 65 |
|
66 | 66 | # General information about the project. |
67 | | -project = u'OpenML' |
68 | | -copyright = ( |
69 | | - u'2014-{}, the OpenML-Python team.'.format(time.strftime("%Y,%m,%d,%H,%M,%S").split(',')[0]) |
| 67 | +project = u"OpenML" |
| 68 | +copyright = u"2014-{}, the OpenML-Python team.".format( |
| 69 | + time.strftime("%Y,%m,%d,%H,%M,%S").split(",")[0] |
70 | 70 | ) |
71 | 71 |
|
72 | 72 | # The version info for the project you're documenting, acts as replacement for |
|
90 | 90 |
|
91 | 91 | # List of patterns, relative to source directory, that match files and |
92 | 92 | # directories to ignore when looking for source files. |
93 | | -exclude_patterns = ['_build', '_templates', '_static'] |
| 93 | +exclude_patterns = ["_build", "_templates", "_static"] |
94 | 94 |
|
95 | 95 | # The reST default role (used for this markup: `text`) to use for all |
96 | 96 | # documents. |
|
108 | 108 | # show_authors = False |
109 | 109 |
|
110 | 110 | # The name of the Pygments (syntax highlighting) style to use. |
111 | | -pygments_style = 'sphinx' |
| 111 | +pygments_style = "sphinx" |
112 | 112 |
|
113 | 113 | # A list of ignored prefixes for module index sorting. |
114 | 114 | # modindex_common_prefix = [] |
|
121 | 121 |
|
122 | 122 | # The theme to use for HTML and HTML Help pages. See the documentation for |
123 | 123 | # a list of builtin themes. |
124 | | -html_theme = 'bootstrap' |
| 124 | +html_theme = "bootstrap" |
125 | 125 |
|
126 | 126 | html_theme_options = { |
127 | 127 | # Navigation bar title. (Default: ``project`` value) |
128 | | - 'navbar_title': "OpenML", |
129 | | - |
| 128 | + "navbar_title": "OpenML", |
130 | 129 | # Tab name for entire site. (Default: "Site") |
131 | 130 | # 'navbar_site_name': "Site", |
132 | | - |
133 | 131 | # A list of tuples containting pages to link to. The value should |
134 | 132 | # be in the form [(name, page), ..] |
135 | | - 'navbar_links': [ |
136 | | - ('Start', 'index'), |
137 | | - ('User Guide', 'usage'), |
138 | | - ('API', 'api'), |
139 | | - ('Examples', 'examples/index'), |
140 | | - ('Contributing', 'contributing'), |
141 | | - ('Changelog', 'progress'), |
| 133 | + "navbar_links": [ |
| 134 | + ("Start", "index"), |
| 135 | + ("User Guide", "usage"), |
| 136 | + ("API", "api"), |
| 137 | + ("Examples", "examples/index"), |
| 138 | + ("Contributing", "contributing"), |
| 139 | + ("Changelog", "progress"), |
142 | 140 | ], |
143 | | - |
144 | 141 | # Render the next and previous page links in navbar. (Default: true) |
145 | | - 'navbar_sidebarrel': False, |
146 | | - |
| 142 | + "navbar_sidebarrel": False, |
147 | 143 | # Render the current pages TOC in the navbar. (Default: true) |
148 | | - 'navbar_pagenav': False, |
149 | | - |
| 144 | + "navbar_pagenav": False, |
150 | 145 | # Tab name for the current pages TOC. (Default: "Page") |
151 | | - 'navbar_pagenav_name': "On this page", |
152 | | - |
| 146 | + "navbar_pagenav_name": "On this page", |
153 | 147 | # Global TOC depth for "site" navbar tab. (Default: 1) |
154 | 148 | # Switching to -1 shows all levels. |
155 | | - 'globaltoc_depth': 1, |
156 | | - |
| 149 | + "globaltoc_depth": 1, |
157 | 150 | # Include hidden TOCs in Site navbar? |
158 | 151 | # |
159 | 152 | # Note: If this is "false", you cannot have mixed ``:hidden:`` and |
160 | 153 | # non-hidden ``toctree`` directives in the same page, or else the build |
161 | 154 | # will break. |
162 | 155 | # |
163 | 156 | # Values: "true" (default) or "false" |
164 | | - 'globaltoc_includehidden': "false", |
165 | | - |
| 157 | + "globaltoc_includehidden": "false", |
166 | 158 | # HTML navbar class (Default: "navbar") to attach to <div> element. |
167 | 159 | # For black navbar, do "navbar navbar-inverse" |
168 | | - 'navbar_class': "navbar", |
169 | | - |
| 160 | + "navbar_class": "navbar", |
170 | 161 | # Fix navigation bar to top of page? |
171 | 162 | # Values: "true" (default) or "false" |
172 | | - 'navbar_fixed_top': "true", |
173 | | - |
| 163 | + "navbar_fixed_top": "true", |
174 | 164 | # Location of link to source. |
175 | 165 | # Options are "nav" (default), "footer" or anything else to exclude. |
176 | | - 'source_link_position': "None", |
177 | | - |
| 166 | + "source_link_position": "None", |
178 | 167 | # Bootswatch (http://bootswatch.com/) theme. |
179 | 168 | # |
180 | 169 | # Options are nothing with "" (default) or the name of a valid theme |
181 | 170 | # such as "amelia" or "cosmo". |
182 | | - 'bootswatch_theme': "flatly", |
183 | | - |
| 171 | + "bootswatch_theme": "flatly", |
184 | 172 | # Choose Bootstrap version. |
185 | 173 | # Values: "3" (default) or "2" (in quotes) |
186 | | - 'bootstrap_version': "3", |
| 174 | + "bootstrap_version": "3", |
187 | 175 | } |
188 | 176 |
|
189 | 177 | # Add any paths that contain custom themes here, relative to this directory. |
|
224 | 212 | # html_use_smartypants = True |
225 | 213 |
|
226 | 214 | # Custom sidebar templates, maps document names to template names. |
227 | | -html_sidebars = {'**': ['localtoc.html']} |
| 215 | +html_sidebars = {"**": ["localtoc.html"]} |
228 | 216 |
|
229 | 217 | # Additional templates that should be rendered to pages, maps page names to |
230 | 218 | # template names. |
|
257 | 245 | # html_file_suffix = None |
258 | 246 |
|
259 | 247 | # Output file base name for HTML help builder. |
260 | | -htmlhelp_basename = 'OpenMLdoc' |
| 248 | +htmlhelp_basename = "OpenMLdoc" |
261 | 249 |
|
262 | 250 |
|
263 | 251 | # -- Options for LaTeX output --------------------------------------------- |
264 | 252 |
|
265 | 253 | latex_elements = { |
266 | 254 | # The paper size ('letterpaper' or 'a4paper'). |
267 | 255 | # 'papersize': 'letterpaper', |
268 | | - |
269 | 256 | # The font size ('10pt', '11pt' or '12pt'). |
270 | 257 | # 'pointsize': '10pt', |
271 | | - |
272 | 258 | # Additional stuff for the LaTeX preamble. |
273 | 259 | # 'preamble': '', |
274 | 260 | } |
275 | 261 |
|
276 | 262 | # Grouping the document tree into LaTeX files. List of tuples |
277 | 263 | # (source start file, target name, title, |
278 | 264 | # author, documentclass [howto, manual, or own class]). |
279 | | -latex_documents = [('index', 'OpenML.tex', u'OpenML Documentation', |
280 | | - u'Matthias Feurer', 'manual'), ] |
| 265 | +latex_documents = [ |
| 266 | + ("index", "OpenML.tex", u"OpenML Documentation", u"Matthias Feurer", "manual"), |
| 267 | +] |
281 | 268 |
|
282 | 269 | # The name of an image file (relative to this directory) to place at the top of |
283 | 270 | # the title page. |
|
304 | 291 |
|
305 | 292 | # One entry per manual page. List of tuples |
306 | 293 | # (source start file, name, description, authors, manual section). |
307 | | -man_pages = [ |
308 | | - ('index', 'openml', u'OpenML Documentation', |
309 | | - [u'Matthias Feurer'], 1) |
310 | | -] |
| 294 | +man_pages = [("index", "openml", u"OpenML Documentation", [u"Matthias Feurer"], 1)] |
311 | 295 |
|
312 | 296 | # If true, show URL addresses after external links. |
313 | 297 | # man_show_urls = False |
|
319 | 303 | # (source start file, target name, title, author, |
320 | 304 | # dir menu entry, description, category) |
321 | 305 | texinfo_documents = [ |
322 | | - ('index', 'OpenML', u'OpenML Documentation', |
323 | | - u'Matthias Feurer', 'OpenML', 'One line description of project.', |
324 | | - 'Miscellaneous'), |
| 306 | + ( |
| 307 | + "index", |
| 308 | + "OpenML", |
| 309 | + u"OpenML Documentation", |
| 310 | + u"Matthias Feurer", |
| 311 | + "OpenML", |
| 312 | + "One line description of project.", |
| 313 | + "Miscellaneous", |
| 314 | + ), |
325 | 315 | ] |
326 | 316 |
|
327 | 317 | # Documents to append as an appendix to all manuals. |
|
343 | 333 | # Sphinx-gallery configuration. |
344 | 334 | sphinx_gallery_conf = { |
345 | 335 | # disable mini galleries clustered by the used functions |
346 | | - 'backreferences_dir': None, |
| 336 | + "backreferences_dir": None, |
347 | 337 | # path to the examples |
348 | | - 'examples_dirs': '../examples', |
| 338 | + "examples_dirs": "../examples", |
349 | 339 | # path where to save gallery generated examples |
350 | | - 'gallery_dirs': 'examples', |
| 340 | + "gallery_dirs": "examples", |
351 | 341 | # compile execute examples in the examples dir |
352 | | - 'filename_pattern': '.*example.py$|.*tutorial.py$', |
| 342 | + "filename_pattern": ".*example.py$|.*tutorial.py$", |
353 | 343 | # TODO: fix back/forward references for the examples. |
354 | 344 | } |
355 | 345 |
|
|
0 commit comments