|
11 | 11 | # All configuration values have a default value; values that are commented out |
12 | 12 | # serve to show the default value. |
13 | 13 |
|
14 | | -import sys, os |
| 14 | +import os |
| 15 | +import sys |
| 16 | +import sphinx |
15 | 17 |
|
16 | 18 | # If your extensions are in another directory, add it here. If the directory |
17 | 19 | # is relative to the documentation root, use os.path.abspath to make it |
18 | 20 | # absolute, like shown here. |
19 | | -sys.path.append(os.path.abspath('sphinxext')) |
| 21 | +sys.path.insert(0, os.path.abspath('sphinxext')) |
20 | 22 |
|
21 | 23 | # General configuration |
22 | 24 | # --------------------- |
|
28 | 30 | 'sphinx.ext.doctest', |
29 | 31 | 'matplotlib.sphinxext.plot_directive', 'sphinx.ext.inheritance_diagram', |
30 | 32 | 'gen_gallery', 'gen_rst', |
31 | | - 'matplotlib.sphinxext.ipython_console_highlighting', 'github'] |
| 33 | + 'matplotlib.sphinxext.ipython_console_highlighting', 'github', |
| 34 | + 'numpy_ext.numpydoc'] |
| 35 | + |
| 36 | + |
| 37 | +autosummary_generate = True |
| 38 | + |
| 39 | +if sphinx.__version__ >= 1.1: |
| 40 | + autodoc_docstring_signature = True |
32 | 41 |
|
33 | 42 | # Add any paths that contain templates here, relative to this directory. |
34 | 43 | templates_path = ['_templates'] |
|
133 | 142 |
|
134 | 143 | # Additional templates that should be rendered to pages, maps page names to |
135 | 144 | # template names. |
136 | | -html_additional_pages = {'index': 'index.html', 'gallery':'gallery.html', 'citing':'citing.html'} |
| 145 | +html_additional_pages = {'index': 'index.html', |
| 146 | + 'gallery':'gallery.html', |
| 147 | + 'citing': 'citing.html'} |
137 | 148 |
|
138 | 149 | # If false, no module index is generated. |
139 | 150 | #html_use_modindex = True |
|
0 commit comments