|
7 | 7 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
8 | 8 | # ones.
|
9 | 9 | extensions = [
|
10 |
| - 'sphinx.ext.autodoc', |
11 |
| - 'sphinx.ext.doctest', |
12 |
| - 'sphinx.ext.todo', |
13 |
| - 'sphinx.ext.napoleon', |
14 |
| - 'sphinx.ext.mathjax', |
15 |
| - 'sphinx.ext.coverage', |
16 |
| - 'sphinx.ext.viewcode', |
17 |
| - 'sphinx.ext.autosummary', |
18 |
| - 'sphinxcontrib.bibtex', |
| 10 | + "sphinx.ext.autodoc", |
| 11 | + "sphinx.ext.doctest", |
| 12 | + "sphinx.ext.todo", |
| 13 | + "sphinx.ext.napoleon", |
| 14 | + "sphinx.ext.mathjax", |
| 15 | + "sphinx.ext.coverage", |
| 16 | + "sphinx.ext.viewcode", |
| 17 | + "sphinx.ext.autosummary", |
| 18 | + "sphinxcontrib.bibtex", |
19 | 19 | ]
|
20 | 20 |
|
21 | 21 | # Add any paths that contain templates here, relative to this directory.
|
22 |
| -templates_path = ['_templates'] |
| 22 | +templates_path = ["_templates"] |
23 | 23 |
|
24 | 24 |
|
25 | 25 | mathjax_path = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
|
26 | 26 |
|
27 | 27 | sphinx_gallery_conf = {
|
28 | 28 | # path to examples scripts
|
29 |
| - 'examples_dirs': '../examples', |
| 29 | + "examples_dirs": "../examples", |
30 | 30 | # path where to save the generated examples
|
31 |
| - 'gallery_dirs': 'auto_examples', |
| 31 | + "gallery_dirs": "auto_examples", |
32 | 32 | # path to the default thumb pics
|
33 | 33 | # 'default_thumb_file': './_static/wfns_white_bg_logo.png',
|
34 | 34 | # set the plot file pattern
|
35 |
| - 'filename_pattern': '/(plot_.*|.*_plot.py$)', |
| 35 | + "filename_pattern": "/(plot_.*|.*_plot.py$)", |
36 | 36 | }
|
37 | 37 |
|
38 | 38 | # The suffix(es) of source filenames.
|
39 | 39 | # You can specify multiple suffix as a list of string:
|
40 | 40 | # source_suffix = ['.rst', '.md']
|
41 |
| -source_suffix = '.rst' |
| 41 | +source_suffix = ".rst" |
42 | 42 |
|
43 | 43 | # The encoding of source files.
|
44 | 44 | # source_encoding = 'utf-8-sig'
|
45 | 45 |
|
46 | 46 | # The master toctree document.
|
47 |
| -master_doc = 'index' |
| 47 | +master_doc = "index" |
48 | 48 |
|
49 | 49 | # General information about the project.
|
50 |
| -project = u'wfns' |
51 |
| -copyright = u'2017, Ayers\' Group @ McMaster University' |
52 |
| -author = u'Ayers\' Group @ McMaster University' |
| 50 | +project = u"wfns" |
| 51 | +copyright = u"2017, Ayers' Group @ McMaster University" |
| 52 | +author = u"Ayers' Group @ McMaster University" |
53 | 53 |
|
54 | 54 | # The version info for the project you're documenting, acts as replacement for
|
55 | 55 | # |version| and |release|, also used in various other places throughout the
|
56 | 56 | # built documents.
|
57 | 57 | #
|
58 | 58 | # The short X.Y version.
|
59 |
| -version = u'0.0.0' |
| 59 | +version = u"0.0.0" |
60 | 60 | # The full version, including alpha/beta/rc tags.
|
61 |
| -release = u'0.0' |
| 61 | +release = u"0.0" |
62 | 62 |
|
63 | 63 | # The language for content autogenerated by Sphinx. Refer to documentation
|
64 | 64 | # for a list of supported languages.
|
|
75 | 75 |
|
76 | 76 | # List of patterns, relative to source directory, that match files and
|
77 | 77 | # directories to ignore when looking for source files.
|
78 |
| -exclude_patterns = ['_build', '_themes/*', 'sphinxext'] |
| 78 | +exclude_patterns = ["_build", "_themes/*", "sphinxext"] |
79 | 79 |
|
80 | 80 | # The reST default role (used for this markup: `text`) to use for all
|
81 | 81 | # documents.
|
|
93 | 93 | # show_authors = False
|
94 | 94 |
|
95 | 95 | # The name of the Pygments (syntax highlighting) style to use.
|
96 |
| -pygments_style = 'sphinx' |
| 96 | +pygments_style = "sphinx" |
97 | 97 |
|
98 | 98 | # A list of ignored prefixes for module index sorting.
|
99 | 99 | # modindex_common_prefix = []
|
|
108 | 108 |
|
109 | 109 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
110 | 110 | # a list of builtin themes.
|
111 |
| -html_theme = 'sphinx_rtd_theme' |
112 |
| -html_theme_path = ["_themes/sphinx_rtd_theme/", ] |
| 111 | +html_theme = "sphinx_rtd_theme" |
| 112 | +html_theme_path = ["_themes/sphinx_rtd_theme/"] |
113 | 113 | html_show_sourcelink = False
|
114 | 114 |
|
115 | 115 | # Theme options are theme-specific and customize the look and feel of a theme
|
|
134 | 134 | # The name of an image file (within the static path) to use as favicon of the
|
135 | 135 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
136 | 136 | # pixels large.
|
137 |
| -html_favicon = '_static/wfns_favicon.ico' |
| 137 | +html_favicon = "_static/wfns_favicon.ico" |
138 | 138 |
|
139 | 139 | # Add any paths that contain custom static files (such as style sheets) here,
|
140 | 140 | # relative to this directory. They are copied after the builtin static files,
|
141 | 141 | # so a file named "default.css" will overwrite the builtin "default.css".
|
142 |
| -html_static_path = ['_static'] |
| 142 | +html_static_path = ["_static"] |
143 | 143 |
|
144 | 144 | # Add any extra paths that contain custom files (such as robots.txt or
|
145 | 145 | # .htaccess) here, relative to this directory. These files are copied
|
|
202 | 202 | # html_search_scorer = 'scorer.js'
|
203 | 203 |
|
204 | 204 | # Output file base name for HTML help builder.
|
205 |
| -htmlhelp_basename = 'wfnsdoc' |
| 205 | +htmlhelp_basename = "wfnsdoc" |
206 | 206 |
|
207 | 207 | # -- imgmath for equation generation --------------------------------------
|
208 | 208 |
|
209 | 209 | # imgmath_latex_preamble = r'''\usepackage{physics}'''
|
210 | 210 |
|
211 | 211 | # -- Options for LaTeX output ---------------------------------------------
|
212 | 212 |
|
213 |
| -latex_engine = 'pdflatex' |
| 213 | +latex_engine = "pdflatex" |
214 | 214 |
|
215 | 215 | latex_elements = {
|
216 | 216 | # The paper size ('letterpaper' or 'a4paper').
|
217 |
| - 'papersize': 'letterpaper', |
218 |
| - |
| 217 | + "papersize": "letterpaper", |
219 | 218 | # The font size ('10pt', '11pt' or '12pt').
|
220 | 219 | # 'pointsize': '10pt',
|
221 |
| - |
222 | 220 | # Additional stuff for the LaTeX preamble.
|
223 |
| - 'preamble': r''' |
| 221 | + "preamble": r""" |
224 | 222 | \usepackage{amsmath}
|
225 | 223 | \usepackage{amsfont}
|
226 | 224 | \usepackage{braket}
|
227 |
| -''', |
228 |
| - |
| 225 | +""", |
229 | 226 | # Latex figure (float) alignment
|
230 | 227 | # 'figure_align': 'htbp',
|
231 | 228 | }
|
|
234 | 231 | # (source start file, target name, title,
|
235 | 232 | # author, documentclass [howto, manual, or own class]).
|
236 | 233 | latex_documents = [
|
237 |
| - (master_doc, 'wfns.tex', u'Project Documentation', |
238 |
| - u'Ayers\' Group @ McMaster University', 'manual'), |
| 234 | + ( |
| 235 | + master_doc, |
| 236 | + "wfns.tex", |
| 237 | + u"Project Documentation", |
| 238 | + u"Ayers' Group @ McMaster University", |
| 239 | + "manual", |
| 240 | + ) |
239 | 241 | ]
|
240 | 242 |
|
241 | 243 | # The name of an image file (relative to this directory) to place at the top of
|
|
263 | 265 |
|
264 | 266 | # One entry per manual page. List of tuples
|
265 | 267 | # (source start file, name, description, authors, manual section).
|
266 |
| -man_pages = [ |
267 |
| - (master_doc, 'wfns', u'Project Documentation', |
268 |
| - [author], 1) |
269 |
| -] |
| 268 | +man_pages = [(master_doc, "wfns", u"Project Documentation", [author], 1)] |
270 | 269 |
|
271 | 270 | # If true, show URL addresses after external links.
|
272 | 271 | # man_show_urls = False
|
|
278 | 277 | # (source start file, target name, title, author,
|
279 | 278 | # dir menu entry, description, category)
|
280 | 279 | texinfo_documents = [
|
281 |
| - (master_doc, 'wfns', u'Project Documentation', |
282 |
| - author, 'wfns', 'One line description of project.', |
283 |
| - 'Miscellaneous'), |
| 280 | + ( |
| 281 | + master_doc, |
| 282 | + "wfns", |
| 283 | + u"Project Documentation", |
| 284 | + author, |
| 285 | + "wfns", |
| 286 | + "One line description of project.", |
| 287 | + "Miscellaneous", |
| 288 | + ) |
284 | 289 | ]
|
285 | 290 |
|
286 | 291 | # Documents to append as an appendix to all manuals.
|
|
300 | 305 |
|
301 | 306 | # Put class docstring and the __init__ docstring together in the documentation
|
302 | 307 | # for your class when you use the autoclass directive.
|
303 |
| -autoclass_content = 'both' |
| 308 | +autoclass_content = "both" |
304 | 309 |
|
305 |
| -autodoc_member_order = 'bysource' |
| 310 | +autodoc_member_order = "bysource" |
306 | 311 | # autodoc_default_flags = ['members', 'undoc-members', 'inherited-members', 'show-inheritance']
|
307 | 312 |
|
308 | 313 | # -----------------------------------------------------------------------------
|
309 | 314 | # Autosummary
|
310 | 315 | # -----------------------------------------------------------------------------
|
311 |
| -autosummary_generate = ['tech_api.rst'] |
| 316 | +autosummary_generate = ["tech_api.rst"] |
0 commit comments