|
14 | 14 |
|
15 | 15 | import sys |
16 | 16 | import os |
| 17 | +from shutil import rmtree |
17 | 18 |
|
18 | 19 | nipypepath = os.path.abspath('..') |
19 | 20 | sys.path.insert(1, nipypepath) |
20 | 21 |
|
21 | 22 | import nipype |
22 | 23 |
|
| 24 | +if not os.path.exists('users/examples'): |
| 25 | + os.mkdir('users/examples') |
| 26 | +os.system('python ../tools/make_examples.py --no-exec') |
| 27 | + |
| 28 | +if os.path.exists('api/generated'): |
| 29 | + rmtree('api/generated') |
| 30 | +os.system('python ../tools/build_modref_templates.py') |
| 31 | +if os.path.exists('interfaces/generated'): |
| 32 | + rmtree('interfaces/generated') |
| 33 | +os.system('python ../tools/build_interface_docs.py') |
| 34 | + |
23 | 35 | # If extensions (or modules to document with autodoc) are in another directory, |
24 | 36 | # add these directories to sys.path here. If the directory is relative to the |
25 | 37 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
29 | 41 |
|
30 | 42 | # Add any Sphinx extension module names here, as strings. They can be extensions |
31 | 43 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
32 | | -extensions = ['sphinx.ext.todo', |
| 44 | +extensions = ['readthedocs_ext.readthedocs', |
| 45 | + 'sphinx.ext.todo', |
33 | 46 | 'sphinx.ext.pngmath', |
34 | 47 | 'sphinx.ext.inheritance_diagram', |
35 | 48 | 'sphinx.ext.graphviz', |
|
40 | 53 | 'numpy_ext.numpydoc', |
41 | 54 | 'matplotlib.sphinxext.plot_directive', |
42 | 55 | 'matplotlib.sphinxext.only_directives', |
43 | | - 'IPython.sphinxext.ipython_directive', |
44 | | - 'IPython.sphinxext.ipython_console_highlighting' |
| 56 | + #'IPython.sphinxext.ipython_directive', |
| 57 | + #'IPython.sphinxext.ipython_console_highlighting' |
45 | 58 | ] |
46 | 59 |
|
47 | 60 | # Add any paths that contain templates here, relative to this directory. |
|
58 | 71 |
|
59 | 72 | # General information about the project. |
60 | 73 | project = u'nipype' |
61 | | -copyright = u'2009-15, Neuroimaging in Python team' |
| 74 | +copyright = u'2009-16, Neuroimaging in Python team' |
62 | 75 |
|
63 | 76 | # The version info for the project you're documenting, acts as replacement for |
64 | 77 | # |version| and |release|, also used in various other places throughout the |
|
67 | 80 | # The short X.Y version. |
68 | 81 | version = nipype.__version__ |
69 | 82 | # The full version, including alpha/beta/rc tags. |
70 | | -release = version |
| 83 | +release = "0.11.0" |
71 | 84 |
|
72 | 85 | # The language for content autogenerated by Sphinx. Refer to documentation |
73 | 86 | # for a list of supported languages. |
|
0 commit comments