|
51 | 51 | ] |
52 | 52 |
|
53 | 53 | autosummary_generate = True |
54 | | -autodoc_default_flags = ['inherited-members'] |
| 54 | +autodoc_default_options = {'inherited-members': None} |
55 | 55 |
|
56 | 56 | # Add any paths that contain templates here, relative to this directory. |
57 | 57 | templates_path = ['_templates'] |
|
250 | 250 | # 'python': ('http://docs.python.org/', None), |
251 | 251 | # 'numpy': ('http://docs.scipy.org/doc/numpy-dev/', None), |
252 | 252 | # 'scipy': ('http://scipy.github.io/devdocs/', None), |
253 | | - 'matplotlib': ('http://matplotlib.org', None), |
254 | | - 'imageio': ('http://imageio.readthedocs.io/en/latest', None), |
255 | | - 'mayavi': ('http://docs.enthought.com/mayavi/mayavi', None), |
256 | | - 'nibabel': ('http://nipy.org/nibabel', None), |
| 253 | + 'matplotlib': ('https://matplotlib.org', None), |
| 254 | + 'imageio': ('https://imageio.readthedocs.io/en/latest', None), |
| 255 | + 'mayavi': ('https://docs.enthought.com/mayavi/mayavi', None), |
| 256 | + 'nibabel': ('https://nipy.org/nibabel', None), |
257 | 257 | } |
258 | 258 |
|
259 | 259 | # One entry per manual page. List of tuples |
|
268 | 268 |
|
269 | 269 | try: |
270 | 270 | from mayavi import mlab |
271 | | - find_mayavi_figures = True |
272 | 271 | # Do not pop up any mayavi windows while running the |
273 | 272 | # examples. These are very annoying since they steal the focus. |
274 | 273 | mlab.options.offscreen = True |
| 274 | + scrapers = ('matplotlib', 'mayavi') |
275 | 275 | except Exception: |
276 | | - find_mayavi_figures = False |
| 276 | + scrapers = ('matplotlib',) |
277 | 277 |
|
278 | 278 | sphinx_gallery_conf = { |
279 | 279 | 'doc_module': ('surfer',), |
280 | | - 'reference_url': { |
281 | | - 'surfer': None, |
282 | | - 'matplotlib': 'http://matplotlib.org', |
283 | | - 'numpy': 'http://docs.scipy.org/doc/numpy', |
284 | | - 'scipy': 'http://docs.scipy.org/doc/scipy/reference', |
285 | | - 'mayavi': 'http://docs.enthought.com/mayavi/mayavi', |
286 | | - }, |
| 280 | + 'reference_url': {'surfer': None}, |
287 | 281 | 'examples_dirs': examples_dirs, |
288 | 282 | 'gallery_dirs': gallery_dirs, |
289 | 283 | 'within_subsection_order': FileNameSortKey, |
290 | | - 'find_mayavi_figures': find_mayavi_figures, |
| 284 | + 'image_scrapers': scrapers, |
291 | 285 | 'default_thumb_file': os.path.join('_static', 'pysurfer_logo_small.png'), |
292 | 286 | 'backreferences_dir': 'generated', |
293 | 287 | 'download_section_examples': False, |
294 | 288 | 'thumbnail_size': (250, 250), |
295 | | - } |
| 289 | +} |
296 | 290 |
|
297 | 291 | numpydoc_class_members_toctree = False |
298 | 292 | numpydoc_show_inherited_class_members = False |
|
0 commit comments