|
14 | 14 | #
|
15 | 15 | import os
|
16 | 16 | import sys
|
17 |
| -sys.path.insert(0, os.path.abspath('../')) |
| 17 | + |
| 18 | +sys.path.insert(0, os.path.abspath("../")) |
18 | 19 |
|
19 | 20 |
|
20 | 21 | # -- Project information -----------------------------------------------------
|
21 | 22 |
|
22 |
| -project = 'PyBaMM' |
23 |
| -copyright = '2018, Valentin Sulzer' |
24 |
| -author = 'Valentin Sulzer' |
| 23 | +project = "PyBaMM" |
| 24 | +copyright = "2018, Valentin Sulzer" |
| 25 | +author = "Valentin Sulzer" |
25 | 26 |
|
26 | 27 | # The short X.Y version
|
27 |
| -version = '' |
| 28 | +version = "" |
28 | 29 | # The full version, including alpha/beta/rc tags
|
29 |
| -release = '' |
| 30 | +release = "" |
30 | 31 |
|
31 | 32 |
|
32 | 33 | # -- General configuration ---------------------------------------------------
|
|
39 | 40 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
40 | 41 | # ones.
|
41 | 42 | extensions = [
|
42 |
| - 'sphinx.ext.autodoc', |
43 |
| - 'sphinx.ext.doctest', |
44 |
| - 'sphinx.ext.intersphinx', |
45 |
| - 'sphinx.ext.mathjax', |
46 |
| - 'sphinx.ext.viewcode', |
47 |
| - 'sphinx.ext.napoleon', |
| 43 | + "sphinx.ext.autodoc", |
| 44 | + "sphinx.ext.doctest", |
| 45 | + "sphinx.ext.intersphinx", |
| 46 | + "sphinx.ext.mathjax", |
| 47 | + "sphinx.ext.viewcode", |
| 48 | + "sphinx.ext.napoleon", |
48 | 49 | ]
|
49 | 50 |
|
50 | 51 | napoleon_google_docstring = False
|
|
54 | 55 | """
|
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 | # The language for content autogenerated by Sphinx. Refer to documentation
|
69 | 70 | # for a list of supported languages.
|
|
75 | 76 | # List of patterns, relative to source directory, that match files and
|
76 | 77 | # directories to ignore when looking for source files.
|
77 | 78 | # This pattern also affects html_static_path and html_extra_path.
|
78 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 79 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
79 | 80 |
|
80 | 81 | # The name of the Pygments (syntax highlighting) style to use.
|
81 | 82 | pygments_style = None
|
|
86 | 87 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
87 | 88 | # a list of builtin themes.
|
88 | 89 | #
|
89 |
| -html_theme = 'sphinx_rtd_theme' |
| 90 | +html_theme = "sphinxdoc" |
90 | 91 |
|
91 | 92 | # Theme options are theme-specific and customize the look and feel of a theme
|
92 | 93 | # further. For a list of options available for each theme, see the
|
|
97 | 98 | # Add any paths that contain custom static files (such as style sheets) here,
|
98 | 99 | # relative to this directory. They are copied after the builtin static files,
|
99 | 100 | # so a file named "default.css" will overwrite the builtin "default.css".
|
100 |
| -html_static_path = ['_static'] |
| 101 | +html_static_path = ["_static"] |
101 | 102 |
|
102 | 103 | # Custom sidebar templates, must be a dictionary that maps document names
|
103 | 104 | # to template names.
|
|
113 | 114 | # -- Options for HTMLHelp output ---------------------------------------------
|
114 | 115 |
|
115 | 116 | # Output file base name for HTML help builder.
|
116 |
| -htmlhelp_basename = 'PyBaMMdoc' |
| 117 | +htmlhelp_basename = "PyBaMMdoc" |
117 | 118 |
|
118 | 119 |
|
119 | 120 | # -- Options for LaTeX output ------------------------------------------------
|
|
122 | 123 | # The paper size ('letterpaper' or 'a4paper').
|
123 | 124 | #
|
124 | 125 | # 'papersize': 'letterpaper',
|
125 |
| - |
126 | 126 | # The font size ('10pt', '11pt' or '12pt').
|
127 | 127 | #
|
128 | 128 | # 'pointsize': '10pt',
|
129 |
| - |
130 | 129 | # Additional stuff for the LaTeX preamble.
|
131 | 130 | #
|
132 | 131 | # 'preamble': '',
|
133 |
| - |
134 | 132 | # Latex figure (float) alignment
|
135 | 133 | #
|
136 | 134 | # 'figure_align': 'htbp',
|
|
140 | 138 | # (source start file, target name, title,
|
141 | 139 | # author, documentclass [howto, manual, or own class]).
|
142 | 140 | latex_documents = [
|
143 |
| - (master_doc, 'PyBaMM.tex', 'PyBaMM Documentation', |
144 |
| - 'Valentin Sulzer', 'manual'), |
| 141 | + ( |
| 142 | + master_doc, |
| 143 | + "PyBaMM.tex", |
| 144 | + "PyBaMM Documentation", |
| 145 | + "Valentin Sulzer", |
| 146 | + "manual", |
| 147 | + ) |
145 | 148 | ]
|
146 | 149 |
|
147 | 150 |
|
148 | 151 | # -- Options for manual page output ------------------------------------------
|
149 | 152 |
|
150 | 153 | # One entry per manual page. List of tuples
|
151 | 154 | # (source start file, name, description, authors, manual section).
|
152 |
| -man_pages = [ |
153 |
| - (master_doc, 'pybamm', 'PyBaMM Documentation', |
154 |
| - [author], 1) |
155 |
| -] |
| 155 | +man_pages = [(master_doc, "pybamm", "PyBaMM Documentation", [author], 1)] |
156 | 156 |
|
157 | 157 |
|
158 | 158 | # -- Options for Texinfo output ----------------------------------------------
|
|
161 | 161 | # (source start file, target name, title, author,
|
162 | 162 | # dir menu entry, description, category)
|
163 | 163 | texinfo_documents = [
|
164 |
| - (master_doc, 'PyBaMM', 'PyBaMM Documentation', |
165 |
| - author, 'PyBaMM', 'One line description of project.', |
166 |
| - 'Miscellaneous'), |
| 164 | + ( |
| 165 | + master_doc, |
| 166 | + "PyBaMM", |
| 167 | + "PyBaMM Documentation", |
| 168 | + author, |
| 169 | + "PyBaMM", |
| 170 | + "One line description of project.", |
| 171 | + "Miscellaneous", |
| 172 | + ) |
167 | 173 | ]
|
168 | 174 |
|
169 | 175 |
|
|
182 | 188 | # epub_uid = ''
|
183 | 189 |
|
184 | 190 | # A list of files that should not be packed into the epub file.
|
185 |
| -epub_exclude_files = ['search.html'] |
| 191 | +epub_exclude_files = ["search.html"] |
186 | 192 |
|
187 | 193 |
|
188 | 194 | # -- Extension configuration -------------------------------------------------
|
189 | 195 |
|
190 | 196 | # -- Options for intersphinx extension ---------------------------------------
|
191 | 197 |
|
192 | 198 | # Example configuration for intersphinx: refer to the Python standard library.
|
193 |
| -intersphinx_mapping = {'https://docs.python.org/': None} |
| 199 | +intersphinx_mapping = {"https://docs.python.org/": None} |
0 commit comments