##// 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
1 NO CONTENT: file renamed from docs/sphinxext/ipython_directive.py to IPython/sphinxext/ipython_directive.py
@@ -63,4 +63,4 if __name__ == '__main__':
63 63 docwriter.write_index(outdir, 'gen.rst',
64 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 if ON_RTD:
30 30 # absolute, like shown here.
31 31 sys.path.insert(0, os.path.abspath('../sphinxext'))
32 32
33 # Import support for ipython console session syntax highlighting (lives
34 # in the sphinxext directory defined above)
35 import ipython_console_highlighting
33 # Import support for ipython console session syntax highlighting
34 # (lives IPython's sphinxext subpackage)
35 from IPython.sphinxext import ipython_console_highlighting
36 36
37 37 # We load the ipython release info into a dict by explicit execution
38 38 iprelease = {}
@@ -50,8 +50,8 extensions = [
50 50 'sphinx.ext.autodoc',
51 51 'sphinx.ext.doctest',
52 52 'sphinx.ext.inheritance_diagram',
53 'ipython_console_highlighting',
54 'ipython_directive',
53 'IPython.sphinxext.ipython_console_highlighting',
54 'IPython.sphinxext.ipython_directive',
55 55 'numpydoc', # to preprocess docstrings
56 56 'github', # for easy GitHub links
57 57 ]
@@ -61,7 +61,7 if ON_RTD:
61 61 extensions.remove('matplotlib.sphinxext.only_directives')
62 62 extensions.remove('matplotlib.sphinxext.mathmpl')
63 63 extensions.remove('matplotlib.sphinxext.plot_directive')
64 extensions.remove('ipython_directive')
64 extensions.remove('IPython.sphinxext.ipython_directive')
65 65
66 66 # Add any paths that contain templates here, relative to this directory.
67 67 templates_path = ['_templates']
@@ -17,6 +17,8 NOTE: this is a modified version of a script originally shipped with the
17 17 PyMVPA project, which we've adapted for NIPY use. PyMVPA is an MIT-licensed
18 18 project."""
19 19
20 from __future__ import print_function
21
20 22 # Stdlib imports
21 23 import ast
22 24 import os
@@ -210,7 +212,7 class ApiDocWriter(object):
210 212 # get the names of all classes and functions
211 213 functions, classes = self._parse_module(uri)
212 214 if not len(functions) and not len(classes):
213 print 'WARNING: Empty -',uri # dbg
215 print ('WARNING: Empty -', uri) # dbg
214 216 return ''
215 217
216 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