Skip to content

Commit c926aee

Browse files
committed
black formating
1 parent e5c56c2 commit c926aee

File tree

1 file changed

+101
-93
lines changed

1 file changed

+101
-93
lines changed

doc/conf.py

Lines changed: 101 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -14,73 +14,75 @@
1414

1515
# import sys
1616
# import os
17+
import sphinx_rtd_theme
18+
1719

1820
# If extensions (or modules to document with autodoc) are in another directory,
1921
# add these directories to sys.path here. If the directory is relative to the
2022
# 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('.'))
2224

2325
# -- General configuration ------------------------------------------------
2426

2527
# If your documentation needs a minimal Sphinx version, state it here.
26-
#needs_sphinx = '1.0'
28+
# needs_sphinx = '1.0'
2729

2830
# Add any Sphinx extension module names here, as strings. They can be
2931
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3032
# ones.
3133
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",
3739
]
3840

3941
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": {
4648
# 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"],
5254
# Optional keys
53-
'use_jupyter_lab': True
54-
}
55+
"use_jupyter_lab": True,
56+
},
5557
}
5658

5759
# Add any paths that contain templates here, relative to this directory.
58-
templates_path = ['.templates']
60+
templates_path = [".templates"]
5961

6062
# The suffix(es) of source filenames.
6163
# You can specify multiple suffix as a list of string:
6264
# source_suffix = ['.rst', '.md']
63-
source_suffix = '.rst'
65+
source_suffix = ".rst"
6466

6567
# The encoding of source files.
66-
#source_encoding = 'utf-8-sig'
68+
# source_encoding = 'utf-8-sig'
6769

6870
# The master toctree document.
69-
master_doc = 'index'
71+
master_doc = "index"
7072

7173
# 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"
7577

7678
# The version info for the project you're documenting, acts as replacement for
7779
# |version| and |release|, also used in various other places throughout the
7880
# built documents.
7981
#
8082
# The short X.Y version.
81-
version = u'3.0'
83+
version = u"3.0"
8284
# The full version, including alpha/beta/rc tags.
83-
release = u'3.0'
85+
release = u"3.0"
8486

8587
# The language for content autogenerated by Sphinx. Refer to documentation
8688
# for a list of supported languages.
@@ -91,37 +93,37 @@
9193

9294
# There are two options for replacing |today|: either, you set today to some
9395
# non-false value, then it is used:
94-
#today = ''
96+
# today = ''
9597
# Else, today_fmt is used as the format for a strftime call.
96-
#today_fmt = '%B %d, %Y'
98+
# today_fmt = '%B %d, %Y'
9799

98100
# List of patterns, relative to source directory, that match files and
99101
# directories to ignore when looking for source files.
100-
exclude_patterns = ['.build']
102+
exclude_patterns = [".build"]
101103

102104
# The reST default role (used for this markup: `text`) to use for all
103105
# documents.
104-
#default_role = None
106+
# default_role = None
105107

106108
# If true, '()' will be appended to :func: etc. cross-reference text.
107-
#add_function_parentheses = True
109+
# add_function_parentheses = True
108110

109111
# If true, the current module name will be prepended to all description
110112
# unit titles (such as .. function::).
111-
#add_module_names = True
113+
# add_module_names = True
112114

113115
# If true, sectionauthor and moduleauthor directives will be shown in the
114116
# output. They are ignored by default.
115-
#show_authors = False
117+
# show_authors = False
116118

117119
# The name of the Pygments (syntax highlighting) style to use.
118-
pygments_style = 'sphinx'
120+
pygments_style = "sphinx"
119121

120122
# A list of ignored prefixes for module index sorting.
121-
#modindex_common_prefix = []
123+
# modindex_common_prefix = []
122124

123125
# If true, keep warnings as "system message" paragraphs in the built documents.
124-
#keep_warnings = False
126+
# keep_warnings = False
125127

126128
# If true, `todo` and `todoList` produce output, else they produce nothing.
127129
todo_include_todos = False
@@ -131,157 +133,157 @@
131133

132134
# The theme to use for HTML and HTML Help pages. See the documentation for
133135
# a list of builtin themes.
134-
import sphinx_rtd_theme
135136
html_theme = "sphinx_rtd_theme"
136137

137138
# Theme options are theme-specific and customize the look and feel of a theme
138139
# further. For a list of options available for each theme, see the
139140
# documentation.
140-
#html_theme_options = {}
141+
# html_theme_options = {}
141142

142143
# Add any paths that contain custom themes here, relative to this directory.
143144
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
144145

145146
# The name for this set of Sphinx documents. If None, it defaults to
146147
# "<project> v<release> documentation".
147-
#html_title = None
148+
# html_title = None
148149

149150
# A shorter title for the navigation bar. Default is the same as html_title.
150-
#html_short_title = None
151+
# html_short_title = None
151152

152153
# The name of an image file (relative to this directory) to place at the top
153154
# of the sidebar.
154-
html_logo = '../share/png/logo.png'
155+
html_logo = "../share/png/logo.png"
155156

156157
# The name of an image file (relative to this directory) to use as a favicon of
157158
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
158159
# pixels large.
159-
#html_favicon = None
160+
# html_favicon = None
160161

161162
# Add any paths that contain custom static files (such as style sheets) here,
162163
# relative to this directory. They are copied after the builtin static files,
163164
# so a file named "default.css" will overwrite the builtin "default.css".
164-
html_static_path = ['.static']
165+
html_static_path = [".static"]
165166

166167
# Add any extra paths that contain custom files (such as robots.txt or
167168
# .htaccess) here, relative to this directory. These files are copied
168169
# directly to the root of the documentation.
169-
#html_extra_path = []
170+
# html_extra_path = []
170171

171172
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
172173
# using the given strftime format.
173-
#html_last_updated_fmt = '%b %d, %Y'
174+
# html_last_updated_fmt = '%b %d, %Y'
174175

175176
# If true, SmartyPants will be used to convert quotes and dashes to
176177
# typographically correct entities.
177-
#html_use_smartypants = True
178+
# html_use_smartypants = True
178179

179180
# Custom sidebar templates, maps document names to template names.
180-
#html_sidebars = {}
181+
# html_sidebars = {}
181182

182183
# Additional templates that should be rendered to pages, maps page names to
183184
# template names.
184-
#html_additional_pages = {}
185+
# html_additional_pages = {}
185186

186187
# If false, no module index is generated.
187-
#html_domain_indices = True
188+
# html_domain_indices = True
188189

189190
# If false, no index is generated.
190-
#html_use_index = True
191+
# html_use_index = True
191192

192193
# If true, the index is split into individual pages for each letter.
193-
#html_split_index = False
194+
# html_split_index = False
194195

195196
# If true, links to the reST sources are added to the pages.
196-
#html_show_sourcelink = True
197+
# html_show_sourcelink = True
197198

198199
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
199-
#html_show_sphinx = True
200+
# html_show_sphinx = True
200201

201202
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
202-
#html_show_copyright = True
203+
# html_show_copyright = True
203204

204205
# If true, an OpenSearch description file will be output, and all pages will
205206
# contain a <link> tag referring to it. The value of this option must be the
206207
# base URL from which the finished HTML is served.
207-
#html_use_opensearch = ''
208+
# html_use_opensearch = ''
208209

209210
# This is the file name suffix for HTML files (e.g. ".xhtml").
210-
#html_file_suffix = None
211+
# html_file_suffix = None
211212

212213
# Language to be used for generating the HTML full-text search index.
213214
# Sphinx supports the following languages:
214215
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
215216
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
216-
#html_search_language = 'en'
217+
# html_search_language = 'en'
217218

218219
# A dictionary with options for the search language support, empty by default.
219220
# Now only 'ja' uses this config value
220-
#html_search_options = {'type': 'default'}
221+
# html_search_options = {'type': 'default'}
221222

222223
# The name of a javascript file (relative to the configuration directory) that
223224
# implements a search results scorer. If empty, the default will be used.
224-
#html_search_scorer = 'scorer.js'
225+
# html_search_scorer = 'scorer.js'
225226

226227
# Output file base name for HTML help builder.
227-
htmlhelp_basename = 'py-eddy-trackerdoc'
228+
htmlhelp_basename = "py-eddy-trackerdoc"
228229

229230
# -- Options for LaTeX output ---------------------------------------------
230231

231232
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',
243241
}
244242

245243
# Grouping the document tree into LaTeX files. List of tuples
246244
# (source start file, target name, title,
247245
# author, documentclass [howto, manual, or own class]).
248246
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+
),
251254
]
252255

253256
# The name of an image file (relative to this directory) to place at the top of
254257
# the title page.
255-
#latex_logo = None
258+
# latex_logo = None
256259

257260
# For "manual" documents, if this is true, then toplevel headings are parts,
258261
# not chapters.
259-
#latex_use_parts = False
262+
# latex_use_parts = False
260263

261264
# If true, show page references after internal links.
262-
#latex_show_pagerefs = False
265+
# latex_show_pagerefs = False
263266

264267
# If true, show URL addresses after external links.
265-
#latex_show_urls = False
268+
# latex_show_urls = False
266269

267270
# Documents to append as an appendix to all manuals.
268-
#latex_appendices = []
271+
# latex_appendices = []
269272

270273
# If false, no module index is generated.
271-
#latex_domain_indices = True
274+
# latex_domain_indices = True
272275

273276

274277
# -- Options for manual page output ---------------------------------------
275278

276279
# One entry per manual page. List of tuples
277280
# (source start file, name, description, authors, manual section).
278281
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)
281283
]
282284

283285
# If true, show URL addresses after external links.
284-
#man_show_urls = False
286+
# man_show_urls = False
285287

286288

287289
# -- Options for Texinfo output -------------------------------------------
@@ -290,23 +292,29 @@
290292
# (source start file, target name, title, author,
291293
# dir menu entry, description, category)
292294
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+
),
296304
]
297305

298306
# Documents to append as an appendix to all manuals.
299-
#texinfo_appendices = []
307+
# texinfo_appendices = []
300308

301309
# If false, no module index is generated.
302-
#texinfo_domain_indices = True
310+
# texinfo_domain_indices = True
303311

304312
# How to display URL addresses: 'footnote', 'no', or 'inline'.
305-
#texinfo_show_urls = 'footnote'
313+
# texinfo_show_urls = 'footnote'
306314

307315
# If true, do not generate a @detailmenu in the "Top" node's menu.
308-
#texinfo_no_detailmenu = False
316+
# texinfo_no_detailmenu = False
309317

310318

311319
# 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

Comments
 (0)