##// END OF EJS Templates
Backport PR #10022: Remove matplotlib requirement for building docs...
Matthias Bussonnier -
Show More
@@ -4,7 +4,7 b''
4 The IPython API
4 The IPython API
5 ###################
5 ###################
6
6
7 .. htmlonly::
7 .. only:: html
8
8
9 :Release: |version|
9 :Release: |version|
10 :Date: |today|
10 :Date: |today|
@@ -17,12 +17,10 b''
17
17
18 import sys, os
18 import sys, os
19
19
20 # http://read-the-docs.readthedocs.io/en/latest/faq.html
20 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
21 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
21
22
22 if ON_RTD:
23 if ON_RTD:
23 # Mock the presence of matplotlib, which we don't have on RTD
24 # see
25 # http://read-the-docs.readthedocs.io/en/latest/faq.html
26 tags.add('rtd')
24 tags.add('rtd')
27
25
28 # RTD doesn't use the Makefile, so re-run autogen_{things}.py here.
26 # RTD doesn't use the Makefile, so re-run autogen_{things}.py here.
@@ -54,9 +52,6 b" exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/r"
54 # Add any Sphinx extension module names here, as strings. They can be extensions
52 # Add any Sphinx extension module names here, as strings. They can be extensions
55 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
53 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
56 extensions = [
54 extensions = [
57 'matplotlib.sphinxext.mathmpl',
58 'matplotlib.sphinxext.only_directives',
59 'matplotlib.sphinxext.plot_directive',
60 'sphinx.ext.autodoc',
55 'sphinx.ext.autodoc',
61 'sphinx.ext.autosummary',
56 'sphinx.ext.autosummary',
62 'sphinx.ext.doctest',
57 'sphinx.ext.doctest',
@@ -71,9 +66,6 b' extensions = ['
71
66
72 if ON_RTD:
67 if ON_RTD:
73 # Remove extensions not currently supported on RTD
68 # Remove extensions not currently supported on RTD
74 extensions.remove('matplotlib.sphinxext.only_directives')
75 extensions.remove('matplotlib.sphinxext.mathmpl')
76 extensions.remove('matplotlib.sphinxext.plot_directive')
77 extensions.remove('IPython.sphinxext.ipython_directive')
69 extensions.remove('IPython.sphinxext.ipython_directive')
78 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
70 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
79
71
@@ -4,7 +4,7 b''
4 IPython Documentation
4 IPython Documentation
5 =====================
5 =====================
6
6
7 .. htmlonly::
7 .. only:: html
8
8
9 :Release: |release|
9 :Release: |release|
10 :Date: |today|
10 :Date: |today|
@@ -104,7 +104,7 b' repository <http://github.com/ipython/ipython>`_.'
104 Formerly ``IPython.parallel``.
104 Formerly ``IPython.parallel``.
105
105
106
106
107 .. htmlonly::
107 .. only:: html
108 * :ref:`genindex`
108 * :ref:`genindex`
109 * :ref:`modindex`
109 * :ref:`modindex`
110 * :ref:`search`
110 * :ref:`search`
General Comments 0
You need to be logged in to leave comments. Login now