|
11 | 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
12 | 12 | # |
13 | 13 | from packaging.version import Version |
14 | | -from templateflow import __version__, __copyright__, __packagename__ |
| 14 | + |
| 15 | +from templateflow import __copyright__, __packagename__, __version__ |
15 | 16 |
|
16 | 17 | # -- Project information ----------------------------------------------------- |
17 | 18 | project = __packagename__ |
18 | 19 | copyright = __copyright__ |
19 | | -author = "The TemplateFlow Developers" |
| 20 | +author = 'The NiPreps Developers' |
20 | 21 |
|
21 | 22 | # The full version, including alpha/beta/rc tags |
22 | 23 | release = __version__ |
|
29 | 30 |
|
30 | 31 | # -- General configuration --------------------------------------------------- |
31 | 32 | extensions = [ |
32 | | - "sphinx.ext.autodoc", |
33 | | - "sphinx.ext.coverage", |
34 | | - "sphinx.ext.doctest", |
35 | | - "sphinx.ext.githubpages", |
36 | | - "sphinx.ext.ifconfig", |
37 | | - "sphinx.ext.intersphinx", |
38 | | - "sphinx.ext.mathjax", |
39 | | - "sphinx.ext.napoleon", |
40 | | - "sphinx.ext.viewcode", |
41 | | - "sphinxcontrib.apidoc", |
42 | | - "nbsphinx", |
| 33 | + 'sphinx.ext.autodoc', |
| 34 | + 'sphinx.ext.coverage', |
| 35 | + 'sphinx.ext.doctest', |
| 36 | + 'sphinx.ext.githubpages', |
| 37 | + 'sphinx.ext.ifconfig', |
| 38 | + 'sphinx.ext.intersphinx', |
| 39 | + 'sphinx.ext.mathjax', |
| 40 | + 'sphinx.ext.napoleon', |
| 41 | + 'sphinx.ext.viewcode', |
| 42 | + 'sphinxcontrib.apidoc', |
| 43 | + 'nbsphinx', |
| 44 | + 'sphinx_click', |
43 | 45 | ] |
44 | 46 |
|
45 | 47 | autodoc_mock_imports = [ |
46 | | - "matplotlib", |
47 | | - "nilearn", |
48 | | - "nipy", |
49 | | - "nitime", |
50 | | - "numpy", |
51 | | - "pandas", |
52 | | - "seaborn", |
53 | | - "skimage", |
54 | | - "svgutils", |
55 | | - "transforms3d", |
| 48 | + 'matplotlib', |
| 49 | + 'nilearn', |
| 50 | + 'nipy', |
| 51 | + 'nitime', |
| 52 | + 'numpy', |
| 53 | + 'pandas', |
| 54 | + 'seaborn', |
| 55 | + 'skimage', |
| 56 | + 'svgutils', |
| 57 | + 'transforms3d', |
56 | 58 | ] |
57 | 59 | autodoc_autoreload = True |
58 | 60 |
|
|
67 | 69 | # ] |
68 | 70 |
|
69 | 71 | # Add any paths that contain templates here, relative to this directory. |
70 | | -templates_path = ["_templates"] |
| 72 | +templates_path = ['_templates'] |
71 | 73 |
|
72 | 74 | # The suffix(es) of source filenames. |
73 | 75 | # You can specify multiple suffix as a list of string: |
74 | 76 | # |
75 | 77 | # source_suffix = ['.rst', '.md'] |
76 | | -source_suffix = ".rst" |
| 78 | +source_suffix = '.rst' |
77 | 79 |
|
78 | 80 | # The master toctree document. |
79 | | -master_doc = "index" |
| 81 | +master_doc = 'index' |
80 | 82 |
|
81 | 83 | # The language for content autogenerated by Sphinx. Refer to documentation |
82 | 84 | # for a list of supported languages. |
|
89 | 91 | # directories to ignore when looking for source files. |
90 | 92 | # This pattern also affects html_static_path and html_extra_path. |
91 | 93 | exclude_patterns = [ |
92 | | - "_build", |
93 | | - "Thumbs.db", |
94 | | - ".DS_Store", |
95 | | - "api/modules.rst", |
96 | | - "api/templateflow.rst", |
| 94 | + '_build', |
| 95 | + 'Thumbs.db', |
| 96 | + '.DS_Store', |
| 97 | + 'api/modules.rst', |
| 98 | + 'api/templateflow.rst', |
97 | 99 | ] |
98 | 100 |
|
99 | 101 | # The name of the Pygments (syntax highlighting) style to use. |
|
105 | 107 | # The theme to use for HTML and HTML Help pages. See the documentation for |
106 | 108 | # a list of builtin themes. |
107 | 109 | # |
108 | | -html_theme = "sphinx_rtd_theme" |
| 110 | +html_theme = 'sphinx_rtd_theme' |
109 | 111 |
|
110 | 112 | # Theme options are theme-specific and customize the look and feel of a theme |
111 | 113 | # further. For a list of options available for each theme, see the |
|
116 | 118 | # Add any paths that contain custom static files (such as style sheets) here, |
117 | 119 | # relative to this directory. They are copied after the builtin static files, |
118 | 120 | # so a file named "default.css" will overwrite the builtin "default.css". |
119 | | -html_static_path = ["_static"] |
| 121 | +html_static_path = ['_static'] |
120 | 122 |
|
121 | 123 | # Custom sidebar templates, must be a dictionary that maps document names |
122 | 124 | # to template names. |
|
132 | 134 | # -- Options for HTMLHelp output --------------------------------------------- |
133 | 135 |
|
134 | 136 | # Output file base name for HTML help builder. |
135 | | -htmlhelp_basename = "templateflowdoc" |
| 137 | +htmlhelp_basename = 'templateflowdoc' |
136 | 138 |
|
137 | 139 |
|
138 | 140 | # -- Options for LaTeX output ------------------------------------------------ |
|
158 | 160 | latex_documents = [ |
159 | 161 | ( |
160 | 162 | master_doc, |
161 | | - "templateflow.tex", |
162 | | - "TemplateFlow Documentation", |
163 | | - "The TemplateFlow Developers", |
164 | | - "manual", |
| 163 | + 'templateflow.tex', |
| 164 | + 'TemplateFlow Documentation', |
| 165 | + 'The TemplateFlow Developers', |
| 166 | + 'manual', |
165 | 167 | ), |
166 | 168 | ] |
167 | 169 |
|
|
170 | 172 |
|
171 | 173 | # One entry per manual page. List of tuples |
172 | 174 | # (source start file, name, description, authors, manual section). |
173 | | -man_pages = [(master_doc, "templateflow", "TemplateFlow Documentation", [author], 1)] |
| 175 | +man_pages = [(master_doc, 'templateflow', 'TemplateFlow Documentation', [author], 1)] |
174 | 176 |
|
175 | 177 |
|
176 | 178 | # -- Options for Texinfo output ---------------------------------------------- |
|
181 | 183 | texinfo_documents = [ |
182 | 184 | ( |
183 | 185 | master_doc, |
184 | | - "templateflow", |
185 | | - "TemplateFlow Documentation", |
| 186 | + 'templateflow', |
| 187 | + 'TemplateFlow Documentation', |
186 | 188 | author, |
187 | | - "TemplateFlow", |
188 | | - "One line description of project.", |
189 | | - "Miscellaneous", |
| 189 | + 'TemplateFlow', |
| 190 | + 'One line description of project.', |
| 191 | + 'Miscellaneous', |
190 | 192 | ), |
191 | 193 | ] |
192 | 194 |
|
|
206 | 208 | # epub_uid = '' |
207 | 209 |
|
208 | 210 | # A list of files that should not be packed into the epub file. |
209 | | -epub_exclude_files = ["search.html"] |
| 211 | +epub_exclude_files = ['search.html'] |
210 | 212 |
|
211 | 213 |
|
212 | 214 | # -- Extension configuration ------------------------------------------------- |
213 | 215 |
|
214 | | -apidoc_module_dir = "../templateflow" |
215 | | -apidoc_output_dir = "api" |
| 216 | +apidoc_module_dir = '../templateflow' |
| 217 | +apidoc_output_dir = 'api' |
216 | 218 | apidoc_excluded_paths = [ |
217 | | - "conftest.py", |
218 | | - "*/tests/*", |
219 | | - "tests/*", |
220 | | - "data/*", |
| 219 | + 'conftest.py', |
| 220 | + '*/tests/*', |
| 221 | + 'tests/*', |
| 222 | + 'data/*', |
221 | 223 | ] |
222 | 224 | apidoc_separate_modules = True |
223 | | -apidoc_extra_args = ["--module-first", "-d 1", "-T"] |
| 225 | +apidoc_extra_args = ['--module-first', '-d 1', '-T'] |
224 | 226 |
|
225 | 227 | # -- Options for intersphinx extension --------------------------------------- |
226 | 228 |
|
227 | 229 | # Example configuration for intersphinx: refer to the Python standard library. |
228 | 230 | intersphinx_mapping = { |
229 | | - "bids": ("https://bids-standard.github.io/pybids/", None), |
230 | | - "matplotlib": ("https://matplotlib.org/", None), |
231 | | - "nibabel": ("https://nipy.org/nibabel/", None), |
232 | | - "nipype": ("https://nipype.readthedocs.io/en/latest/", None), |
233 | | - "numpy": ("https://numpy.org/doc/stable/", None), |
234 | | - "pandas": ("http://pandas.pydata.org/pandas-docs/dev", None), |
235 | | - "python": ("https://docs.python.org/3/", None), |
236 | | - "scipy": ("https://docs.scipy.org/doc/scipy/reference", None), |
| 231 | + 'bids': ('https://bids-standard.github.io/pybids/', None), |
| 232 | + 'matplotlib': ('https://matplotlib.org/', None), |
| 233 | + 'nibabel': ('https://nipy.org/nibabel/', None), |
| 234 | + 'nipype': ('https://nipype.readthedocs.io/en/latest/', None), |
| 235 | + 'numpy': ('https://numpy.org/doc/stable/', None), |
| 236 | + 'pandas': ('http://pandas.pydata.org/pandas-docs/dev', None), |
| 237 | + 'python': ('https://docs.python.org/3/', None), |
| 238 | + 'scipy': ('https://docs.scipy.org/doc/scipy/reference', None), |
237 | 239 | } |
238 | 240 |
|
239 | 241 | # -- Options for versioning extension ---------------------------------------- |
240 | | -smv_branch_whitelist = r"^master$" |
241 | | -smv_tag_whitelist = r"^\d+\.\d+\.\d+(?!rc|dev).*$" |
| 242 | +smv_branch_whitelist = r'^master$' |
| 243 | +smv_tag_whitelist = r'^\d+\.\d+\.\d+(?!rc|dev).*$' |
242 | 244 | smv_released_pattern = r'^tags/.*$' |
243 | 245 | smv_rebuild_tags = False |
0 commit comments