|
14 | 14 |
|
15 | 15 | # import sys |
16 | 16 | # import os |
| 17 | +import sphinx_rtd_theme |
| 18 | + |
17 | 19 |
|
18 | 20 | # If extensions (or modules to document with autodoc) are in another directory, |
19 | 21 | # add these directories to sys.path here. If the directory is relative to the |
20 | 22 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
21 | | -#sys.path.insert(0, os.path.abspath('.')) |
| 23 | +# sys.path.insert(0, os.path.abspath('.')) |
22 | 24 |
|
23 | 25 | # -- General configuration ------------------------------------------------ |
24 | 26 |
|
25 | 27 | # If your documentation needs a minimal Sphinx version, state it here. |
26 | | -#needs_sphinx = '1.0' |
| 28 | +# needs_sphinx = '1.0' |
27 | 29 |
|
28 | 30 | # Add any Sphinx extension module names here, as strings. They can be |
29 | 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
30 | 32 | # ones. |
31 | 33 | extensions = [ |
32 | | - 'sphinx.ext.autodoc', |
33 | | - 'sphinx.ext.doctest', |
34 | | - 'sphinx.ext.intersphinx', |
35 | | - 'sphinx.ext.viewcode', |
36 | | - 'sphinx_gallery.gen_gallery', |
| 34 | + "sphinx.ext.autodoc", |
| 35 | + "sphinx.ext.doctest", |
| 36 | + "sphinx.ext.intersphinx", |
| 37 | + "sphinx.ext.viewcode", |
| 38 | + "sphinx_gallery.gen_gallery", |
37 | 39 | ] |
38 | 40 |
|
39 | 41 | sphinx_gallery_conf = { |
40 | | - 'examples_dirs': '../examples', # path to your example scripts |
41 | | - 'gallery_dirs': 'python_module', |
42 | | - 'capture_repr': ('_repr_html_'), |
43 | | - 'line_numbers': False, |
44 | | - 'filename_pattern': '/pet', |
45 | | - 'binder': { |
| 42 | + "examples_dirs": "../examples", # path to your example scripts |
| 43 | + "gallery_dirs": "python_module", |
| 44 | + "capture_repr": ("_repr_html_"), |
| 45 | + "line_numbers": False, |
| 46 | + "filename_pattern": "/pet", |
| 47 | + "binder": { |
46 | 48 | # Required keys |
47 | | - 'org': 'AntSimi', |
48 | | - 'repo': 'py-eddy-tracker', |
49 | | - 'branch': 'master', |
50 | | - 'binderhub_url': 'https://mybinder.org', |
51 | | - 'dependencies': ['../requirements.txt'], |
| 49 | + "org": "AntSimi", |
| 50 | + "repo": "py-eddy-tracker", |
| 51 | + "branch": "master", |
| 52 | + "binderhub_url": "https://mybinder.org", |
| 53 | + "dependencies": ["../requirements.txt"], |
52 | 54 | # Optional keys |
53 | | - 'use_jupyter_lab': True |
54 | | - } |
| 55 | + "use_jupyter_lab": True, |
| 56 | + }, |
55 | 57 | } |
56 | 58 |
|
57 | 59 | # Add any paths that contain templates here, relative to this directory. |
58 | | -templates_path = ['.templates'] |
| 60 | +templates_path = [".templates"] |
59 | 61 |
|
60 | 62 | # The suffix(es) of source filenames. |
61 | 63 | # You can specify multiple suffix as a list of string: |
62 | 64 | # source_suffix = ['.rst', '.md'] |
63 | | -source_suffix = '.rst' |
| 65 | +source_suffix = ".rst" |
64 | 66 |
|
65 | 67 | # The encoding of source files. |
66 | | -#source_encoding = 'utf-8-sig' |
| 68 | +# source_encoding = 'utf-8-sig' |
67 | 69 |
|
68 | 70 | # The master toctree document. |
69 | | -master_doc = 'index' |
| 71 | +master_doc = "index" |
70 | 72 |
|
71 | 73 | # General information about the project. |
72 | | -project = u'py-eddy-tracker' |
73 | | -copyright = u'2019, A. Delepoulle & E. Mason' |
74 | | -author = u'A. Delepoulle & E. Mason' |
| 74 | +project = u"py-eddy-tracker" |
| 75 | +copyright = u"2019, A. Delepoulle & E. Mason" |
| 76 | +author = u"A. Delepoulle & E. Mason" |
75 | 77 |
|
76 | 78 | # The version info for the project you're documenting, acts as replacement for |
77 | 79 | # |version| and |release|, also used in various other places throughout the |
78 | 80 | # built documents. |
79 | 81 | # |
80 | 82 | # The short X.Y version. |
81 | | -version = u'3.0' |
| 83 | +version = u"3.0" |
82 | 84 | # The full version, including alpha/beta/rc tags. |
83 | | -release = u'3.0' |
| 85 | +release = u"3.0" |
84 | 86 |
|
85 | 87 | # The language for content autogenerated by Sphinx. Refer to documentation |
86 | 88 | # for a list of supported languages. |
|
91 | 93 |
|
92 | 94 | # There are two options for replacing |today|: either, you set today to some |
93 | 95 | # non-false value, then it is used: |
94 | | -#today = '' |
| 96 | +# today = '' |
95 | 97 | # Else, today_fmt is used as the format for a strftime call. |
96 | | -#today_fmt = '%B %d, %Y' |
| 98 | +# today_fmt = '%B %d, %Y' |
97 | 99 |
|
98 | 100 | # List of patterns, relative to source directory, that match files and |
99 | 101 | # directories to ignore when looking for source files. |
100 | | -exclude_patterns = ['.build'] |
| 102 | +exclude_patterns = [".build"] |
101 | 103 |
|
102 | 104 | # The reST default role (used for this markup: `text`) to use for all |
103 | 105 | # documents. |
104 | | -#default_role = None |
| 106 | +# default_role = None |
105 | 107 |
|
106 | 108 | # If true, '()' will be appended to :func: etc. cross-reference text. |
107 | | -#add_function_parentheses = True |
| 109 | +# add_function_parentheses = True |
108 | 110 |
|
109 | 111 | # If true, the current module name will be prepended to all description |
110 | 112 | # unit titles (such as .. function::). |
111 | | -#add_module_names = True |
| 113 | +# add_module_names = True |
112 | 114 |
|
113 | 115 | # If true, sectionauthor and moduleauthor directives will be shown in the |
114 | 116 | # output. They are ignored by default. |
115 | | -#show_authors = False |
| 117 | +# show_authors = False |
116 | 118 |
|
117 | 119 | # The name of the Pygments (syntax highlighting) style to use. |
118 | | -pygments_style = 'sphinx' |
| 120 | +pygments_style = "sphinx" |
119 | 121 |
|
120 | 122 | # A list of ignored prefixes for module index sorting. |
121 | | -#modindex_common_prefix = [] |
| 123 | +# modindex_common_prefix = [] |
122 | 124 |
|
123 | 125 | # If true, keep warnings as "system message" paragraphs in the built documents. |
124 | | -#keep_warnings = False |
| 126 | +# keep_warnings = False |
125 | 127 |
|
126 | 128 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
127 | 129 | todo_include_todos = False |
|
131 | 133 |
|
132 | 134 | # The theme to use for HTML and HTML Help pages. See the documentation for |
133 | 135 | # a list of builtin themes. |
134 | | -import sphinx_rtd_theme |
135 | 136 | html_theme = "sphinx_rtd_theme" |
136 | 137 |
|
137 | 138 | # Theme options are theme-specific and customize the look and feel of a theme |
138 | 139 | # further. For a list of options available for each theme, see the |
139 | 140 | # documentation. |
140 | | -#html_theme_options = {} |
| 141 | +# html_theme_options = {} |
141 | 142 |
|
142 | 143 | # Add any paths that contain custom themes here, relative to this directory. |
143 | 144 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
144 | 145 |
|
145 | 146 | # The name for this set of Sphinx documents. If None, it defaults to |
146 | 147 | # "<project> v<release> documentation". |
147 | | -#html_title = None |
| 148 | +# html_title = None |
148 | 149 |
|
149 | 150 | # A shorter title for the navigation bar. Default is the same as html_title. |
150 | | -#html_short_title = None |
| 151 | +# html_short_title = None |
151 | 152 |
|
152 | 153 | # The name of an image file (relative to this directory) to place at the top |
153 | 154 | # of the sidebar. |
154 | | -html_logo = '../share/png/logo.png' |
| 155 | +html_logo = "../share/png/logo.png" |
155 | 156 |
|
156 | 157 | # The name of an image file (relative to this directory) to use as a favicon of |
157 | 158 | # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
158 | 159 | # pixels large. |
159 | | -#html_favicon = None |
| 160 | +# html_favicon = None |
160 | 161 |
|
161 | 162 | # Add any paths that contain custom static files (such as style sheets) here, |
162 | 163 | # relative to this directory. They are copied after the builtin static files, |
163 | 164 | # so a file named "default.css" will overwrite the builtin "default.css". |
164 | | -html_static_path = ['.static'] |
| 165 | +html_static_path = [".static"] |
165 | 166 |
|
166 | 167 | # Add any extra paths that contain custom files (such as robots.txt or |
167 | 168 | # .htaccess) here, relative to this directory. These files are copied |
168 | 169 | # directly to the root of the documentation. |
169 | | -#html_extra_path = [] |
| 170 | +# html_extra_path = [] |
170 | 171 |
|
171 | 172 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
172 | 173 | # using the given strftime format. |
173 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 174 | +# html_last_updated_fmt = '%b %d, %Y' |
174 | 175 |
|
175 | 176 | # If true, SmartyPants will be used to convert quotes and dashes to |
176 | 177 | # typographically correct entities. |
177 | | -#html_use_smartypants = True |
| 178 | +# html_use_smartypants = True |
178 | 179 |
|
179 | 180 | # Custom sidebar templates, maps document names to template names. |
180 | | -#html_sidebars = {} |
| 181 | +# html_sidebars = {} |
181 | 182 |
|
182 | 183 | # Additional templates that should be rendered to pages, maps page names to |
183 | 184 | # template names. |
184 | | -#html_additional_pages = {} |
| 185 | +# html_additional_pages = {} |
185 | 186 |
|
186 | 187 | # If false, no module index is generated. |
187 | | -#html_domain_indices = True |
| 188 | +# html_domain_indices = True |
188 | 189 |
|
189 | 190 | # If false, no index is generated. |
190 | | -#html_use_index = True |
| 191 | +# html_use_index = True |
191 | 192 |
|
192 | 193 | # If true, the index is split into individual pages for each letter. |
193 | | -#html_split_index = False |
| 194 | +# html_split_index = False |
194 | 195 |
|
195 | 196 | # If true, links to the reST sources are added to the pages. |
196 | | -#html_show_sourcelink = True |
| 197 | +# html_show_sourcelink = True |
197 | 198 |
|
198 | 199 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
199 | | -#html_show_sphinx = True |
| 200 | +# html_show_sphinx = True |
200 | 201 |
|
201 | 202 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
202 | | -#html_show_copyright = True |
| 203 | +# html_show_copyright = True |
203 | 204 |
|
204 | 205 | # If true, an OpenSearch description file will be output, and all pages will |
205 | 206 | # contain a <link> tag referring to it. The value of this option must be the |
206 | 207 | # base URL from which the finished HTML is served. |
207 | | -#html_use_opensearch = '' |
| 208 | +# html_use_opensearch = '' |
208 | 209 |
|
209 | 210 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
210 | | -#html_file_suffix = None |
| 211 | +# html_file_suffix = None |
211 | 212 |
|
212 | 213 | # Language to be used for generating the HTML full-text search index. |
213 | 214 | # Sphinx supports the following languages: |
214 | 215 | # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja' |
215 | 216 | # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr' |
216 | | -#html_search_language = 'en' |
| 217 | +# html_search_language = 'en' |
217 | 218 |
|
218 | 219 | # A dictionary with options for the search language support, empty by default. |
219 | 220 | # Now only 'ja' uses this config value |
220 | | -#html_search_options = {'type': 'default'} |
| 221 | +# html_search_options = {'type': 'default'} |
221 | 222 |
|
222 | 223 | # The name of a javascript file (relative to the configuration directory) that |
223 | 224 | # implements a search results scorer. If empty, the default will be used. |
224 | | -#html_search_scorer = 'scorer.js' |
| 225 | +# html_search_scorer = 'scorer.js' |
225 | 226 |
|
226 | 227 | # Output file base name for HTML help builder. |
227 | | -htmlhelp_basename = 'py-eddy-trackerdoc' |
| 228 | +htmlhelp_basename = "py-eddy-trackerdoc" |
228 | 229 |
|
229 | 230 | # -- Options for LaTeX output --------------------------------------------- |
230 | 231 |
|
231 | 232 | latex_elements = { |
232 | | -# The paper size ('letterpaper' or 'a4paper'). |
233 | | -#'papersize': 'letterpaper', |
234 | | - |
235 | | -# The font size ('10pt', '11pt' or '12pt'). |
236 | | -#'pointsize': '10pt', |
237 | | - |
238 | | -# Additional stuff for the LaTeX preamble. |
239 | | -#'preamble': '', |
240 | | - |
241 | | -# Latex figure (float) alignment |
242 | | -#'figure_align': 'htbp', |
| 233 | + # The paper size ('letterpaper' or 'a4paper'). |
| 234 | + # 'papersize': 'letterpaper', |
| 235 | + # The font size ('10pt', '11pt' or '12pt'). |
| 236 | + # 'pointsize': '10pt', |
| 237 | + # Additional stuff for the LaTeX preamble. |
| 238 | + # 'preamble': '', |
| 239 | + # Latex figure (float) alignment |
| 240 | + # 'figure_align': 'htbp', |
243 | 241 | } |
244 | 242 |
|
245 | 243 | # Grouping the document tree into LaTeX files. List of tuples |
246 | 244 | # (source start file, target name, title, |
247 | 245 | # author, documentclass [howto, manual, or own class]). |
248 | 246 | latex_documents = [ |
249 | | - (master_doc, 'py-eddy-tracker.tex', u'py-eddy-tracker Documentation', |
250 | | - u'A. Delepoulle \\& E. Mason', 'manual'), |
| 247 | + ( |
| 248 | + master_doc, |
| 249 | + "py-eddy-tracker.tex", |
| 250 | + u"py-eddy-tracker Documentation", |
| 251 | + u"A. Delepoulle \\& E. Mason", |
| 252 | + "manual", |
| 253 | + ), |
251 | 254 | ] |
252 | 255 |
|
253 | 256 | # The name of an image file (relative to this directory) to place at the top of |
254 | 257 | # the title page. |
255 | | -#latex_logo = None |
| 258 | +# latex_logo = None |
256 | 259 |
|
257 | 260 | # For "manual" documents, if this is true, then toplevel headings are parts, |
258 | 261 | # not chapters. |
259 | | -#latex_use_parts = False |
| 262 | +# latex_use_parts = False |
260 | 263 |
|
261 | 264 | # If true, show page references after internal links. |
262 | | -#latex_show_pagerefs = False |
| 265 | +# latex_show_pagerefs = False |
263 | 266 |
|
264 | 267 | # If true, show URL addresses after external links. |
265 | | -#latex_show_urls = False |
| 268 | +# latex_show_urls = False |
266 | 269 |
|
267 | 270 | # Documents to append as an appendix to all manuals. |
268 | | -#latex_appendices = [] |
| 271 | +# latex_appendices = [] |
269 | 272 |
|
270 | 273 | # If false, no module index is generated. |
271 | | -#latex_domain_indices = True |
| 274 | +# latex_domain_indices = True |
272 | 275 |
|
273 | 276 |
|
274 | 277 | # -- Options for manual page output --------------------------------------- |
275 | 278 |
|
276 | 279 | # One entry per manual page. List of tuples |
277 | 280 | # (source start file, name, description, authors, manual section). |
278 | 281 | man_pages = [ |
279 | | - (master_doc, 'py-eddy-tracker', u'py-eddy-tracker Documentation', |
280 | | - [author], 1) |
| 282 | + (master_doc, "py-eddy-tracker", u"py-eddy-tracker Documentation", [author], 1) |
281 | 283 | ] |
282 | 284 |
|
283 | 285 | # If true, show URL addresses after external links. |
284 | | -#man_show_urls = False |
| 286 | +# man_show_urls = False |
285 | 287 |
|
286 | 288 |
|
287 | 289 | # -- Options for Texinfo output ------------------------------------------- |
|
290 | 292 | # (source start file, target name, title, author, |
291 | 293 | # dir menu entry, description, category) |
292 | 294 | texinfo_documents = [ |
293 | | - (master_doc, 'py-eddy-tracker', u'py-eddy-tracker Documentation', |
294 | | - author, 'py-eddy-tracker', 'One line description of project.', |
295 | | - 'Miscellaneous'), |
| 295 | + ( |
| 296 | + master_doc, |
| 297 | + "py-eddy-tracker", |
| 298 | + u"py-eddy-tracker Documentation", |
| 299 | + author, |
| 300 | + "py-eddy-tracker", |
| 301 | + "One line description of project.", |
| 302 | + "Miscellaneous", |
| 303 | + ), |
296 | 304 | ] |
297 | 305 |
|
298 | 306 | # Documents to append as an appendix to all manuals. |
299 | | -#texinfo_appendices = [] |
| 307 | +# texinfo_appendices = [] |
300 | 308 |
|
301 | 309 | # If false, no module index is generated. |
302 | | -#texinfo_domain_indices = True |
| 310 | +# texinfo_domain_indices = True |
303 | 311 |
|
304 | 312 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
305 | | -#texinfo_show_urls = 'footnote' |
| 313 | +# texinfo_show_urls = 'footnote' |
306 | 314 |
|
307 | 315 | # If true, do not generate a @detailmenu in the "Top" node's menu. |
308 | | -#texinfo_no_detailmenu = False |
| 316 | +# texinfo_no_detailmenu = False |
309 | 317 |
|
310 | 318 |
|
311 | 319 | # Example configuration for intersphinx: refer to the Python standard library. |
312 | | -intersphinx_mapping = {'https://docs.python.org/': None} |
| 320 | +intersphinx_mapping = {"https://docs.python.org/": None} |
0 commit comments