##// END OF EJS Templates
fav
Matthias Bussonnier -
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
@@ -1,267 +1,268 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 #
2 #
3 # IPython documentation build configuration file.
3 # IPython documentation build configuration file.
4
4
5 # NOTE: This file has been edited manually from the auto-generated one from
5 # NOTE: This file has been edited manually from the auto-generated one from
6 # sphinx. Do NOT delete and re-generate. If any changes from sphinx are
6 # sphinx. Do NOT delete and re-generate. If any changes from sphinx are
7 # needed, generate a scratch one and merge by hand any new fields needed.
7 # needed, generate a scratch one and merge by hand any new fields needed.
8
8
9 #
9 #
10 # This file is execfile()d with the current directory set to its containing dir.
10 # This file is execfile()d with the current directory set to its containing dir.
11 #
11 #
12 # The contents of this file are pickled, so don't put values in the namespace
12 # The contents of this file are pickled, so don't put values in the namespace
13 # that aren't pickleable (module imports are okay, they're removed automatically).
13 # that aren't pickleable (module imports are okay, they're removed automatically).
14 #
14 #
15 # All configuration values have a default value; values that are commented out
15 # All configuration values have a default value; values that are commented out
16 # serve to show the default value.
16 # serve to show the default value.
17
17
18 import sys, os
18 import sys, os
19
19
20 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
20 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
21
21
22 if ON_RTD:
22 if ON_RTD:
23 # Mock the presence of matplotlib, which we don't have on RTD
23 # Mock the presence of matplotlib, which we don't have on RTD
24 # see
24 # see
25 # http://read-the-docs.readthedocs.org/en/latest/faq.html
25 # http://read-the-docs.readthedocs.org/en/latest/faq.html
26 tags.add('rtd')
26 tags.add('rtd')
27
27
28 # RTD doesn't use the Makefile, so re-run autogen_{things}.py here.
28 # RTD doesn't use the Makefile, so re-run autogen_{things}.py here.
29 for name in ('config', 'api', 'magics'):
29 for name in ('config', 'api', 'magics'):
30 fname = 'autogen_{}.py'.format(name)
30 fname = 'autogen_{}.py'.format(name)
31 fpath = os.path.abspath(os.path.join('..', fname))
31 fpath = os.path.abspath(os.path.join('..', fname))
32 with open(fpath) as f:
32 with open(fpath) as f:
33 exec(compile(f.read(), fname, 'exec'), {
33 exec(compile(f.read(), fname, 'exec'), {
34 '__file__': fpath,
34 '__file__': fpath,
35 '__name__': '__main__',
35 '__name__': '__main__',
36 })
36 })
37
37
38 # If your extensions are in another directory, add it here. If the directory
38 # If your extensions are in another directory, add it here. If the directory
39 # is relative to the documentation root, use os.path.abspath to make it
39 # is relative to the documentation root, use os.path.abspath to make it
40 # absolute, like shown here.
40 # absolute, like shown here.
41 sys.path.insert(0, os.path.abspath('../sphinxext'))
41 sys.path.insert(0, os.path.abspath('../sphinxext'))
42
42
43 # We load the ipython release info into a dict by explicit execution
43 # We load the ipython release info into a dict by explicit execution
44 iprelease = {}
44 iprelease = {}
45 exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/release.py', 'exec'),iprelease)
45 exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/release.py', 'exec'),iprelease)
46
46
47 # General configuration
47 # General configuration
48 # ---------------------
48 # ---------------------
49
49
50 # Add any Sphinx extension module names here, as strings. They can be extensions
50 # Add any Sphinx extension module names here, as strings. They can be extensions
51 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
51 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
52 extensions = [
52 extensions = [
53 'matplotlib.sphinxext.mathmpl',
53 'matplotlib.sphinxext.mathmpl',
54 'matplotlib.sphinxext.only_directives',
54 'matplotlib.sphinxext.only_directives',
55 'matplotlib.sphinxext.plot_directive',
55 'matplotlib.sphinxext.plot_directive',
56 'sphinx.ext.autodoc',
56 'sphinx.ext.autodoc',
57 'sphinx.ext.autosummary',
57 'sphinx.ext.autosummary',
58 'sphinx.ext.doctest',
58 'sphinx.ext.doctest',
59 'sphinx.ext.inheritance_diagram',
59 'sphinx.ext.inheritance_diagram',
60 'sphinx.ext.intersphinx',
60 'sphinx.ext.intersphinx',
61 'IPython.sphinxext.ipython_console_highlighting',
61 'IPython.sphinxext.ipython_console_highlighting',
62 'IPython.sphinxext.ipython_directive',
62 'IPython.sphinxext.ipython_directive',
63 'numpydoc', # to preprocess docstrings
63 'numpydoc', # to preprocess docstrings
64 'github', # for easy GitHub links
64 'github', # for easy GitHub links
65 'magics',
65 'magics',
66 ]
66 ]
67
67
68 if ON_RTD:
68 if ON_RTD:
69 # Remove extensions not currently supported on RTD
69 # Remove extensions not currently supported on RTD
70 extensions.remove('matplotlib.sphinxext.only_directives')
70 extensions.remove('matplotlib.sphinxext.only_directives')
71 extensions.remove('matplotlib.sphinxext.mathmpl')
71 extensions.remove('matplotlib.sphinxext.mathmpl')
72 extensions.remove('matplotlib.sphinxext.plot_directive')
72 extensions.remove('matplotlib.sphinxext.plot_directive')
73 extensions.remove('IPython.sphinxext.ipython_directive')
73 extensions.remove('IPython.sphinxext.ipython_directive')
74 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
74 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
75
75
76 # Add any paths that contain templates here, relative to this directory.
76 # Add any paths that contain templates here, relative to this directory.
77 templates_path = ['_templates']
77 templates_path = ['_templates']
78
78
79 # The suffix of source filenames.
79 # The suffix of source filenames.
80 source_suffix = '.rst'
80 source_suffix = '.rst'
81
81
82 if iprelease['_version_extra'] == 'dev':
82 if iprelease['_version_extra'] == 'dev':
83 rst_prolog = """
83 rst_prolog = """
84 .. note::
84 .. note::
85
85
86 This documentation is for a development version of IPython. There may be
86 This documentation is for a development version of IPython. There may be
87 significant differences from the latest stable release.
87 significant differences from the latest stable release.
88
88
89 """
89 """
90
90
91 # The master toctree document.
91 # The master toctree document.
92 master_doc = 'index'
92 master_doc = 'index'
93
93
94 # General substitutions.
94 # General substitutions.
95 project = 'IPython'
95 project = 'IPython'
96 copyright = 'The IPython Development Team'
96 copyright = 'The IPython Development Team'
97
97
98 # ghissue config
98 # ghissue config
99 github_project_url = "https://github.com/ipython/ipython"
99 github_project_url = "https://github.com/ipython/ipython"
100
100
101 # numpydoc config
101 # numpydoc config
102 numpydoc_show_class_members = False # Otherwise Sphinx emits thousands of warnings
102 numpydoc_show_class_members = False # Otherwise Sphinx emits thousands of warnings
103 numpydoc_class_members_toctree = False
103 numpydoc_class_members_toctree = False
104
104
105 # The default replacements for |version| and |release|, also used in various
105 # The default replacements for |version| and |release|, also used in various
106 # other places throughout the built documents.
106 # other places throughout the built documents.
107 #
107 #
108 # The full version, including alpha/beta/rc tags.
108 # The full version, including alpha/beta/rc tags.
109 release = "%s" % iprelease['version']
109 release = "%s" % iprelease['version']
110 # Just the X.Y.Z part, no '-dev'
110 # Just the X.Y.Z part, no '-dev'
111 version = iprelease['version'].split('-', 1)[0]
111 version = iprelease['version'].split('-', 1)[0]
112
112
113
113
114 # There are two options for replacing |today|: either, you set today to some
114 # There are two options for replacing |today|: either, you set today to some
115 # non-false value, then it is used:
115 # non-false value, then it is used:
116 #today = ''
116 #today = ''
117 # Else, today_fmt is used as the format for a strftime call.
117 # Else, today_fmt is used as the format for a strftime call.
118 today_fmt = '%B %d, %Y'
118 today_fmt = '%B %d, %Y'
119
119
120 # List of documents that shouldn't be included in the build.
120 # List of documents that shouldn't be included in the build.
121 #unused_docs = []
121 #unused_docs = []
122
122
123 # Exclude these glob-style patterns when looking for source files. They are
123 # Exclude these glob-style patterns when looking for source files. They are
124 # relative to the source/ directory.
124 # relative to the source/ directory.
125 exclude_patterns = ['whatsnew/pr']
125 exclude_patterns = ['whatsnew/pr']
126
126
127
127
128 # If true, '()' will be appended to :func: etc. cross-reference text.
128 # If true, '()' will be appended to :func: etc. cross-reference text.
129 #add_function_parentheses = True
129 #add_function_parentheses = True
130
130
131 # If true, the current module name will be prepended to all description
131 # If true, the current module name will be prepended to all description
132 # unit titles (such as .. function::).
132 # unit titles (such as .. function::).
133 #add_module_names = True
133 #add_module_names = True
134
134
135 # If true, sectionauthor and moduleauthor directives will be shown in the
135 # If true, sectionauthor and moduleauthor directives will be shown in the
136 # output. They are ignored by default.
136 # output. They are ignored by default.
137 #show_authors = False
137 #show_authors = False
138
138
139 # The name of the Pygments (syntax highlighting) style to use.
139 # The name of the Pygments (syntax highlighting) style to use.
140 pygments_style = 'sphinx'
140 pygments_style = 'sphinx'
141
141
142 # Set the default role so we can use `foo` instead of ``foo``
142 # Set the default role so we can use `foo` instead of ``foo``
143 default_role = 'literal'
143 default_role = 'literal'
144
144
145 # Options for HTML output
145 # Options for HTML output
146 # -----------------------
146 # -----------------------
147
147
148 # The style sheet to use for HTML and HTML Help pages. A file of that name
148 # The style sheet to use for HTML and HTML Help pages. A file of that name
149 # must exist either in Sphinx' static/ path, or in one of the custom paths
149 # must exist either in Sphinx' static/ path, or in one of the custom paths
150 # given in html_static_path.
150 # given in html_static_path.
151 html_style = 'default.css'
151 html_style = 'default.css'
152 html_favicon = 'favicon.ico'
152
153
153 # The name for this set of Sphinx documents. If None, it defaults to
154 # The name for this set of Sphinx documents. If None, it defaults to
154 # "<project> v<release> documentation".
155 # "<project> v<release> documentation".
155 #html_title = None
156 #html_title = None
156
157
157 # The name of an image file (within the static path) to place at the top of
158 # The name of an image file (within the static path) to place at the top of
158 # the sidebar.
159 # the sidebar.
159 #html_logo = None
160 #html_logo = None
160
161
161 # Add any paths that contain custom static files (such as style sheets) here,
162 # Add any paths that contain custom static files (such as style sheets) here,
162 # relative to this directory. They are copied after the builtin static files,
163 # relative to this directory. They are copied after the builtin static files,
163 # so a file named "default.css" will overwrite the builtin "default.css".
164 # so a file named "default.css" will overwrite the builtin "default.css".
164 html_static_path = ['_static']
165 html_static_path = ['_static']
165
166
166 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
167 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
167 # using the given strftime format.
168 # using the given strftime format.
168 html_last_updated_fmt = '%b %d, %Y'
169 html_last_updated_fmt = '%b %d, %Y'
169
170
170 # If true, SmartyPants will be used to convert quotes and dashes to
171 # If true, SmartyPants will be used to convert quotes and dashes to
171 # typographically correct entities.
172 # typographically correct entities.
172 #html_use_smartypants = True
173 #html_use_smartypants = True
173
174
174 # Custom sidebar templates, maps document names to template names.
175 # Custom sidebar templates, maps document names to template names.
175 #html_sidebars = {}
176 #html_sidebars = {}
176
177
177 # Additional templates that should be rendered to pages, maps page names to
178 # Additional templates that should be rendered to pages, maps page names to
178 # template names.
179 # template names.
179 html_additional_pages = {
180 html_additional_pages = {
180 'interactive/htmlnotebook': 'notebook_redirect.html',
181 'interactive/htmlnotebook': 'notebook_redirect.html',
181 'interactive/notebook': 'notebook_redirect.html',
182 'interactive/notebook': 'notebook_redirect.html',
182 'interactive/nbconvert': 'notebook_redirect.html',
183 'interactive/nbconvert': 'notebook_redirect.html',
183 'interactive/public_server': 'notebook_redirect.html',
184 'interactive/public_server': 'notebook_redirect.html',
184 }
185 }
185
186
186 # If false, no module index is generated.
187 # If false, no module index is generated.
187 #html_use_modindex = True
188 #html_use_modindex = True
188
189
189 # If true, the reST sources are included in the HTML build as _sources/<name>.
190 # If true, the reST sources are included in the HTML build as _sources/<name>.
190 #html_copy_source = True
191 #html_copy_source = True
191
192
192 # If true, an OpenSearch description file will be output, and all pages will
193 # If true, an OpenSearch description file will be output, and all pages will
193 # contain a <link> tag referring to it. The value of this option must be the
194 # contain a <link> tag referring to it. The value of this option must be the
194 # base URL from which the finished HTML is served.
195 # base URL from which the finished HTML is served.
195 #html_use_opensearch = ''
196 #html_use_opensearch = ''
196
197
197 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
198 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
198 #html_file_suffix = ''
199 #html_file_suffix = ''
199
200
200 # Output file base name for HTML help builder.
201 # Output file base name for HTML help builder.
201 htmlhelp_basename = 'ipythondoc'
202 htmlhelp_basename = 'ipythondoc'
202
203
203 intersphinx_mapping = {'python': ('http://docs.python.org/2/', None),
204 intersphinx_mapping = {'python': ('http://docs.python.org/2/', None),
204 'rpy2': ('http://rpy.sourceforge.net/rpy2/doc-2.4/html/', None),
205 'rpy2': ('http://rpy.sourceforge.net/rpy2/doc-2.4/html/', None),
205 'traitlets': ('http://traitlets.readthedocs.org/en/latest/', None),
206 'traitlets': ('http://traitlets.readthedocs.org/en/latest/', None),
206 'jupyterclient': ('http://jupyter-client.readthedocs.org/en/latest/', None),
207 'jupyterclient': ('http://jupyter-client.readthedocs.org/en/latest/', None),
207 'ipyparallel': ('http://ipyparallel.readthedocs.org/en/latest/', None),
208 'ipyparallel': ('http://ipyparallel.readthedocs.org/en/latest/', None),
208 }
209 }
209
210
210 # Options for LaTeX output
211 # Options for LaTeX output
211 # ------------------------
212 # ------------------------
212
213
213 # The paper size ('letter' or 'a4').
214 # The paper size ('letter' or 'a4').
214 latex_paper_size = 'letter'
215 latex_paper_size = 'letter'
215
216
216 # The font size ('10pt', '11pt' or '12pt').
217 # The font size ('10pt', '11pt' or '12pt').
217 latex_font_size = '11pt'
218 latex_font_size = '11pt'
218
219
219 # Grouping the document tree into LaTeX files. List of tuples
220 # Grouping the document tree into LaTeX files. List of tuples
220 # (source start file, target name, title, author, document class [howto/manual]).
221 # (source start file, target name, title, author, document class [howto/manual]).
221
222
222 latex_documents = [
223 latex_documents = [
223 ('index', 'ipython.tex', 'IPython Documentation',
224 ('index', 'ipython.tex', 'IPython Documentation',
224 u"""The IPython Development Team""", 'manual', True),
225 u"""The IPython Development Team""", 'manual', True),
225 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
226 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
226 'Using IPython on Windows HPC Server 2008',
227 'Using IPython on Windows HPC Server 2008',
227 u"Brian E. Granger", 'manual', True)
228 u"Brian E. Granger", 'manual', True)
228 ]
229 ]
229
230
230 # The name of an image file (relative to this directory) to place at the top of
231 # The name of an image file (relative to this directory) to place at the top of
231 # the title page.
232 # the title page.
232 #latex_logo = None
233 #latex_logo = None
233
234
234 # For "manual" documents, if this is true, then toplevel headings are parts,
235 # For "manual" documents, if this is true, then toplevel headings are parts,
235 # not chapters.
236 # not chapters.
236 #latex_use_parts = False
237 #latex_use_parts = False
237
238
238 # Additional stuff for the LaTeX preamble.
239 # Additional stuff for the LaTeX preamble.
239 #latex_preamble = ''
240 #latex_preamble = ''
240
241
241 # Documents to append as an appendix to all manuals.
242 # Documents to append as an appendix to all manuals.
242 #latex_appendices = []
243 #latex_appendices = []
243
244
244 # If false, no module index is generated.
245 # If false, no module index is generated.
245 latex_use_modindex = True
246 latex_use_modindex = True
246
247
247
248
248 # Options for texinfo output
249 # Options for texinfo output
249 # --------------------------
250 # --------------------------
250
251
251 texinfo_documents = [
252 texinfo_documents = [
252 (master_doc, 'ipython', 'IPython Documentation',
253 (master_doc, 'ipython', 'IPython Documentation',
253 'The IPython Development Team',
254 'The IPython Development Team',
254 'IPython',
255 'IPython',
255 'IPython Documentation',
256 'IPython Documentation',
256 'Programming',
257 'Programming',
257 1),
258 1),
258 ]
259 ]
259
260
260 modindex_common_prefix = ['IPython.']
261 modindex_common_prefix = ['IPython.']
261
262
262
263
263 # Cleanup
264 # Cleanup
264 # -------
265 # -------
265 # delete release info to avoid pickling errors from sphinx
266 # delete release info to avoid pickling errors from sphinx
266
267
267 del iprelease
268 del iprelease
General Comments 0
You need to be logged in to leave comments. Login now