|
12 | 12 | # |
13 | 13 | import os |
14 | 14 | import sys |
15 | | -sys.path.insert(0, os.path.abspath('../../')) |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath("../../")) |
16 | 17 |
|
17 | 18 |
|
18 | 19 | # -- Project information ----------------------------------------------------- |
19 | 20 |
|
20 | | -project = 'PyNeuroML' |
21 | | -copyright = '2021, NeuroML contributors' |
22 | | -author = 'NeuroML contributors' |
| 21 | +project = "PyNeuroML" |
| 22 | +copyright = "2021, NeuroML contributors" |
| 23 | +author = "NeuroML contributors" |
23 | 24 |
|
24 | 25 |
|
25 | 26 | # -- General configuration --------------------------------------------------- |
26 | 27 |
|
27 | 28 | # Add any Sphinx extension module names here, as strings. They can be |
28 | 29 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
29 | 30 | # ones. |
30 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', |
31 | | - 'sphinxcontrib.bibtex'] |
| 31 | +extensions = [ |
| 32 | + "sphinx.ext.autodoc", |
| 33 | + "sphinx.ext.doctest", |
| 34 | + "sphinx.ext.todo", |
| 35 | + "sphinxcontrib.bibtex", |
| 36 | +] |
32 | 37 |
|
33 | | -bibtex_bibfiles = ['refs.bib'] |
| 38 | +bibtex_bibfiles = ["refs.bib"] |
34 | 39 |
|
35 | 40 | # Add any paths that contain templates here, relative to this directory. |
36 | | -templates_path = ['_templates'] |
| 41 | +templates_path = ["_templates"] |
37 | 42 |
|
38 | 43 | # The short X.Y version. |
39 | 44 | version = "" |
40 | | -for aline in open('../../pyneuroml/__init__.py'): |
| 45 | +for aline in open("../../pyneuroml/__init__.py"): |
41 | 46 | # space here is important since __version__ is used in generation of |
42 | 47 | # version_info also |
43 | | - if '__version__ =' in aline: |
44 | | - version = aline.split("'")[1] |
| 48 | + if "__version__ =" in aline: |
| 49 | + version = aline.split("\"")[1] |
45 | 50 | # The full version, including alpha/beta/rc tags. |
46 | 51 | release = version |
47 | 52 |
|
48 | 53 | # The language for content autogenerated by Sphinx. Refer to documentation |
49 | 54 | # for a list of supported languages. |
50 | | -#language = None |
| 55 | +# language = None |
51 | 56 |
|
52 | 57 | # There are two options for replacing |today|: either, you set today to some |
53 | 58 | # non-false value, then it is used: |
54 | | -#today = '' |
| 59 | +# today = '' |
55 | 60 | # Else, today_fmt is used as the format for a strftime call. |
56 | | -#today_fmt = '%B %d, %Y' |
| 61 | +# today_fmt = '%B %d, %Y' |
57 | 62 |
|
58 | 63 | # List of patterns, relative to source directory, that match files and |
59 | 64 | # directories to ignore when looking for source files. |
60 | | -exclude_patterns = ['_build'] |
| 65 | +exclude_patterns = ["_build"] |
61 | 66 |
|
62 | 67 | # The reST default role (used for this markup: `text`) to use for all documents. |
63 | | -#default_role = None |
| 68 | +# default_role = None |
64 | 69 |
|
65 | 70 | # If true, '()' will be appended to :func: etc. cross-reference text. |
66 | | -#add_function_parentheses = True |
| 71 | +# add_function_parentheses = True |
67 | 72 |
|
68 | 73 | # If true, the current module name will be prepended to all description |
69 | 74 | # unit titles (such as .. function::). |
70 | | -#add_module_names = True |
| 75 | +# add_module_names = True |
71 | 76 |
|
72 | 77 | # If true, sectionauthor and moduleauthor directives will be shown in the |
73 | 78 | # output. They are ignored by default. |
74 | | -#show_authors = False |
| 79 | +# show_authors = False |
75 | 80 |
|
76 | 81 | # The name of the Pygments (syntax highlighting) style to use. |
77 | | -pygments_style = 'sphinx' |
| 82 | +pygments_style = "sphinx" |
78 | 83 |
|
79 | 84 | # A list of ignored prefixes for module index sorting. |
80 | | -#modindex_common_prefix = [] |
| 85 | +# modindex_common_prefix = [] |
81 | 86 |
|
82 | 87 |
|
83 | 88 | # -- Options for HTML output --------------------------------------------------- |
84 | 89 |
|
85 | 90 | # The theme to use for HTML and HTML Help pages. See the documentation for |
86 | 91 | # a list of builtin themes. |
87 | | -html_theme = 'nature' |
| 92 | +html_theme = "nature" |
88 | 93 |
|
89 | 94 | # Theme options are theme-specific and customize the look and feel of a theme |
90 | 95 | # further. For a list of options available for each theme, see the |
91 | 96 | # documentation. |
92 | | -#html_theme_options = {} |
| 97 | +# html_theme_options = {} |
93 | 98 |
|
94 | 99 | # Add any paths that contain custom themes here, relative to this directory. |
95 | | -#html_theme_path = [] |
| 100 | +# html_theme_path = [] |
96 | 101 |
|
97 | 102 | # The name for this set of Sphinx documents. If None, it defaults to |
98 | 103 | # "<project> v<release> documentation". |
99 | | -#html_title = None |
| 104 | +# html_title = None |
100 | 105 |
|
101 | 106 | # A shorter title for the navigation bar. Default is the same as html_title. |
102 | | -#html_short_title = None |
| 107 | +# html_short_title = None |
103 | 108 |
|
104 | 109 | # The name of an image file (relative to this directory) to place at the top |
105 | 110 | # of the sidebar. |
106 | | -html_logo = '_static/neuroml_logo.png' |
| 111 | +html_logo = "_static/neuroml_logo.png" |
107 | 112 |
|
108 | 113 | # The name of an image file (within the static path) to use as favicon of the |
109 | 114 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
110 | 115 | # pixels large. |
111 | | -#html_favicon = None |
| 116 | +# html_favicon = None |
112 | 117 |
|
113 | 118 | # Add any paths that contain custom static files (such as style sheets) here, |
114 | 119 | # relative to this directory. They are copied after the builtin static files, |
115 | 120 | # so a file named "default.css" will overwrite the builtin "default.css". |
116 | | -html_static_path = ['_static'] |
| 121 | +html_static_path = ["_static"] |
117 | 122 |
|
118 | 123 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
119 | 124 | # using the given strftime format. |
120 | | -#html_last_updated_fmt = '%b %d, %Y' |
| 125 | +# html_last_updated_fmt = '%b %d, %Y' |
121 | 126 |
|
122 | 127 | # If true, SmartyPants will be used to convert quotes and dashes to |
123 | 128 | # typographically correct entities. |
124 | | -#html_use_smartypants = True |
| 129 | +# html_use_smartypants = True |
125 | 130 |
|
126 | 131 | # Custom sidebar templates, maps document names to template names. |
127 | | -#html_sidebars = {} |
| 132 | +# html_sidebars = {} |
128 | 133 |
|
129 | 134 | # Additional templates that should be rendered to pages, maps page names to |
130 | 135 | # template names. |
131 | | -#html_additional_pages = {} |
| 136 | +# html_additional_pages = {} |
132 | 137 |
|
133 | 138 | # If false, no module index is generated. |
134 | | -#html_domain_indices = True |
| 139 | +# html_domain_indices = True |
135 | 140 |
|
136 | 141 | # If false, no index is generated. |
137 | | -#html_use_index = True |
| 142 | +# html_use_index = True |
138 | 143 |
|
139 | 144 | # If true, the index is split into individual pages for each letter. |
140 | | -#html_split_index = False |
| 145 | +# html_split_index = False |
141 | 146 |
|
142 | 147 | # If true, links to the reST sources are added to the pages. |
143 | | -#html_show_sourcelink = True |
| 148 | +# html_show_sourcelink = True |
144 | 149 |
|
145 | 150 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
146 | | -#html_show_sphinx = True |
| 151 | +# html_show_sphinx = True |
147 | 152 |
|
148 | 153 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
149 | | -#html_show_copyright = True |
| 154 | +# html_show_copyright = True |
150 | 155 |
|
151 | 156 | # If true, an OpenSearch description file will be output, and all pages will |
152 | 157 | # contain a <link> tag referring to it. The value of this option must be the |
153 | 158 | # base URL from which the finished HTML is served. |
154 | | -#html_use_opensearch = '' |
| 159 | +# html_use_opensearch = '' |
155 | 160 |
|
156 | 161 | # This is the file name suffix for HTML files (e.g. ".xhtml"). |
157 | | -#html_file_suffix = None |
| 162 | +# html_file_suffix = None |
158 | 163 |
|
159 | 164 | # Output file base name for HTML help builder. |
160 | | -htmlhelp_basename = 'PyNeuroMLdoc' |
| 165 | +htmlhelp_basename = "PyNeuroMLdoc" |
161 | 166 |
|
162 | 167 |
|
163 | 168 | # -- Options for LaTeX output -------------------------------------------------- |
|
175 | 180 | # Grouping the document tree into LaTeX files. List of tuples |
176 | 181 | # (source start file, target name, title, author, documentclass [howto/manual]). |
177 | 182 | latex_documents = [ |
178 | | - ('index', 'PyNeuroML.tex', 'PyNeuroML Documentation', |
179 | | - 'PyNeuroML authors and contributors', 'manual'), |
| 183 | + ( |
| 184 | + "index", |
| 185 | + "PyNeuroML.tex", |
| 186 | + "PyNeuroML Documentation", |
| 187 | + "PyNeuroML authors and contributors", |
| 188 | + "manual", |
| 189 | + ), |
180 | 190 | ] |
181 | 191 |
|
182 | 192 | # The name of an image file (relative to this directory) to place at the top of |
183 | 193 | # the title page. |
184 | | -#latex_logo = None |
| 194 | +# latex_logo = None |
185 | 195 |
|
186 | 196 | # For "manual" documents, if this is true, then toplevel headings are parts, |
187 | 197 | # not chapters. |
188 | | -#latex_use_parts = False |
| 198 | +# latex_use_parts = False |
189 | 199 |
|
190 | 200 | # If true, show page references after internal links. |
191 | | -#latex_show_pagerefs = False |
| 201 | +# latex_show_pagerefs = False |
192 | 202 |
|
193 | 203 | # If true, show URL addresses after external links. |
194 | | -#latex_show_urls = False |
| 204 | +# latex_show_urls = False |
195 | 205 |
|
196 | 206 | # Documents to append as an appendix to all manuals. |
197 | | -#latex_appendices = [] |
| 207 | +# latex_appendices = [] |
198 | 208 |
|
199 | 209 | # If false, no module index is generated. |
200 | | -#latex_domain_indices = True |
| 210 | +# latex_domain_indices = True |
201 | 211 |
|
202 | 212 |
|
203 | 213 | # -- Options for manual page output -------------------------------------------- |
204 | 214 |
|
205 | 215 | # One entry per manual page. List of tuples |
206 | 216 | # (source start file, name, description, authors, manual section). |
207 | 217 | man_pages = [ |
208 | | - ('index', 'libneuroml', 'PyNeuroML Documentation', |
209 | | - ['PyNeuroML authors and contributors'], 1) |
| 218 | + ( |
| 219 | + "index", |
| 220 | + "libneuroml", |
| 221 | + "PyNeuroML Documentation", |
| 222 | + ["PyNeuroML authors and contributors"], |
| 223 | + 1, |
| 224 | + ) |
210 | 225 | ] |
211 | 226 |
|
212 | 227 | # If true, show URL addresses after external links. |
213 | | -#man_show_urls = False |
| 228 | +# man_show_urls = False |
214 | 229 |
|
215 | 230 |
|
216 | 231 | # -- Options for Texinfo output ------------------------------------------------ |
|
219 | 234 | # (source start file, target name, title, author, |
220 | 235 | # dir menu entry, description, category) |
221 | 236 | texinfo_documents = [ |
222 | | - ('index', 'PyNeuroML', 'PyNeuroML Documentation', |
223 | | - 'PyNeuroML authors and contributors', 'PyNeuroML', 'This package provides PyNeuroML for working with neuronal models specified in NeuroML 2.', |
224 | | - 'Miscellaneous'), |
| 237 | + ( |
| 238 | + "index", |
| 239 | + "PyNeuroML", |
| 240 | + "PyNeuroML Documentation", |
| 241 | + "PyNeuroML authors and contributors", |
| 242 | + "PyNeuroML", |
| 243 | + "This package provides PyNeuroML for working with neuronal models specified in NeuroML 2.", |
| 244 | + "Miscellaneous", |
| 245 | + ), |
225 | 246 | ] |
226 | 247 |
|
227 | 248 | # Documents to append as an appendix to all manuals. |
228 | | -#texinfo_appendices = [] |
| 249 | +# texinfo_appendices = [] |
229 | 250 |
|
230 | 251 | # If false, no module index is generated. |
231 | | -#texinfo_domain_indices = True |
| 252 | +# texinfo_domain_indices = True |
232 | 253 |
|
233 | 254 | # How to display URL addresses: 'footnote', 'no', or 'inline'. |
234 | | -#texinfo_show_urls = 'footnote' |
| 255 | +# texinfo_show_urls = 'footnote' |
0 commit comments