##// END OF EJS Templates
Merge pull request #3558 from minrk/sphinxext...
Matthias Bussonnier -
r11234:c62496a4 merge
parent child Browse files
Show More
1 NO CONTENT: file renamed from docs/sphinxext/ipython_console_highlighting.py to IPython/sphinxext/ipython_console_highlighting.py
NO CONTENT: file renamed from docs/sphinxext/ipython_console_highlighting.py to IPython/sphinxext/ipython_console_highlighting.py
1 NO CONTENT: file renamed from docs/sphinxext/ipython_directive.py to IPython/sphinxext/ipython_directive.py
NO CONTENT: file renamed from docs/sphinxext/ipython_directive.py to IPython/sphinxext/ipython_directive.py
@@ -63,4 +63,4 b" if __name__ == '__main__':"
63 docwriter.write_index(outdir, 'gen.rst',
63 docwriter.write_index(outdir, 'gen.rst',
64 relative_to = pjoin('source','api')
64 relative_to = pjoin('source','api')
65 )
65 )
66 print '%d files written' % len(docwriter.written_modules)
66 print ('%d files written' % len(docwriter.written_modules))
@@ -30,9 +30,9 b' if ON_RTD:'
30 # absolute, like shown here.
30 # absolute, like shown here.
31 sys.path.insert(0, os.path.abspath('../sphinxext'))
31 sys.path.insert(0, os.path.abspath('../sphinxext'))
32
32
33 # Import support for ipython console session syntax highlighting (lives
33 # Import support for ipython console session syntax highlighting
34 # in the sphinxext directory defined above)
34 # (lives IPython's sphinxext subpackage)
35 import ipython_console_highlighting
35 from IPython.sphinxext import ipython_console_highlighting
36
36
37 # We load the ipython release info into a dict by explicit execution
37 # We load the ipython release info into a dict by explicit execution
38 iprelease = {}
38 iprelease = {}
@@ -50,8 +50,8 b' extensions = ['
50 'sphinx.ext.autodoc',
50 'sphinx.ext.autodoc',
51 'sphinx.ext.doctest',
51 'sphinx.ext.doctest',
52 'sphinx.ext.inheritance_diagram',
52 'sphinx.ext.inheritance_diagram',
53 'ipython_console_highlighting',
53 'IPython.sphinxext.ipython_console_highlighting',
54 'ipython_directive',
54 'IPython.sphinxext.ipython_directive',
55 'numpydoc', # to preprocess docstrings
55 'numpydoc', # to preprocess docstrings
56 'github', # for easy GitHub links
56 'github', # for easy GitHub links
57 ]
57 ]
@@ -61,7 +61,7 b' if ON_RTD:'
61 extensions.remove('matplotlib.sphinxext.only_directives')
61 extensions.remove('matplotlib.sphinxext.only_directives')
62 extensions.remove('matplotlib.sphinxext.mathmpl')
62 extensions.remove('matplotlib.sphinxext.mathmpl')
63 extensions.remove('matplotlib.sphinxext.plot_directive')
63 extensions.remove('matplotlib.sphinxext.plot_directive')
64 extensions.remove('ipython_directive')
64 extensions.remove('IPython.sphinxext.ipython_directive')
65
65
66 # Add any paths that contain templates here, relative to this directory.
66 # Add any paths that contain templates here, relative to this directory.
67 templates_path = ['_templates']
67 templates_path = ['_templates']
@@ -17,6 +17,8 b' NOTE: this is a modified version of a script originally shipped with the'
17 PyMVPA project, which we've adapted for NIPY use. PyMVPA is an MIT-licensed
17 PyMVPA project, which we've adapted for NIPY use. PyMVPA is an MIT-licensed
18 project."""
18 project."""
19
19
20 from __future__ import print_function
21
20 # Stdlib imports
22 # Stdlib imports
21 import ast
23 import ast
22 import os
24 import os
@@ -210,7 +212,7 b' class ApiDocWriter(object):'
210 # get the names of all classes and functions
212 # get the names of all classes and functions
211 functions, classes = self._parse_module(uri)
213 functions, classes = self._parse_module(uri)
212 if not len(functions) and not len(classes):
214 if not len(functions) and not len(classes):
213 print 'WARNING: Empty -',uri # dbg
215 print ('WARNING: Empty -', uri) # dbg
214 return ''
216 return ''
215
217
216 # Make a shorter version of the uri that omits the package name for
218 # Make a shorter version of the uri that omits the package name for
General Comments 0
You need to be logged in to leave comments. Login now