##// END OF EJS Templates
Add debug and fix build hopefully
Matthias Bussonnier -
Show More
@@ -1,298 +1,300 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 # http://read-the-docs.readthedocs.io/en/latest/faq.html
20 # http://read-the-docs.readthedocs.io/en/latest/faq.html
21 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
21 ON_RTD = os.environ.get('READTHEDOCS', None) == 'True'
22
22
23 if ON_RTD:
23 if ON_RTD:
24 tags.add('rtd')
24 tags.add('rtd')
25
25
26 # 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.
27 for name in ('config', 'api', 'magics', 'shortcuts'):
27 for name in ('config', 'api', 'magics', 'shortcuts'):
28 fname = 'autogen_{}.py'.format(name)
28 fname = 'autogen_{}.py'.format(name)
29 fpath = os.path.abspath(os.path.join('..', fname))
29 fpath = os.path.abspath(os.path.join('..', fname))
30 with open(fpath) as f:
30 with open(fpath) as f:
31 exec(compile(f.read(), fname, 'exec'), {
31 exec(compile(f.read(), fname, 'exec'), {
32 '__file__': fpath,
32 '__file__': fpath,
33 '__name__': '__main__',
33 '__name__': '__main__',
34 })
34 })
35 else:
35 else:
36 import sphinx_rtd_theme
36 import sphinx_rtd_theme
37 html_theme = "sphinx_rtd_theme"
37 html_theme = "sphinx_rtd_theme"
38 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
38 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
39
39
40 # If your extensions are in another directory, add it here. If the directory
40 # If your extensions are in another directory, add it here. If the directory
41 # is relative to the documentation root, use os.path.abspath to make it
41 # is relative to the documentation root, use os.path.abspath to make it
42 # absolute, like shown here.
42 # absolute, like shown here.
43 sys.path.insert(0, os.path.abspath('../sphinxext'))
43 sys.path.insert(0, os.path.abspath('../sphinxext'))
44
44
45 # We load the ipython release info into a dict by explicit execution
45 # We load the ipython release info into a dict by explicit execution
46 iprelease = {}
46 iprelease = {}
47 exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/release.py', 'exec'),iprelease)
47 exec(compile(open('../../IPython/core/release.py').read(), '../../IPython/core/release.py', 'exec'),iprelease)
48
48
49 # General configuration
49 # General configuration
50 # ---------------------
50 # ---------------------
51
51
52 # 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
53 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
53 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
54 extensions = [
54 extensions = [
55 'sphinx.ext.autodoc',
55 'sphinx.ext.autodoc',
56 'sphinx.ext.autosummary',
56 'sphinx.ext.autosummary',
57 'sphinx.ext.doctest',
57 'sphinx.ext.doctest',
58 'sphinx.ext.inheritance_diagram',
58 'sphinx.ext.inheritance_diagram',
59 'sphinx.ext.intersphinx',
59 'sphinx.ext.intersphinx',
60 'sphinx.ext.graphviz',
60 'sphinx.ext.graphviz',
61 'IPython.sphinxext.ipython_console_highlighting',
61 'IPython.sphinxext.ipython_console_highlighting',
62 'IPython.sphinxext.ipython_directive',
62 'IPython.sphinxext.ipython_directive',
63 'sphinx.ext.napoleon', # to preprocess docstrings
63 'sphinx.ext.napoleon', # to preprocess docstrings
64 'github', # for easy GitHub links
64 'github', # for easy GitHub links
65 'magics',
65 'magics',
66 'configtraits',
66 'configtraits',
67 ]
67 ]
68
68
69 if ON_RTD:
69 if ON_RTD:
70 # Remove extensions not currently supported on RTD
70 # Remove extensions not currently supported on RTD
71 extensions.remove('IPython.sphinxext.ipython_directive')
71 extensions.remove('IPython.sphinxext.ipython_directive')
72 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
72 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
73
73
74 # Add any paths that contain templates here, relative to this directory.
74 # Add any paths that contain templates here, relative to this directory.
75 templates_path = ['_templates']
75 templates_path = ['_templates']
76
76
77 # The suffix of source filenames.
77 # The suffix of source filenames.
78 source_suffix = '.rst'
78 source_suffix = '.rst'
79
79
80 rst_prolog = ''
80 rst_prolog = ''
81
81
82 def is_stable(extra):
82 def is_stable(extra):
83 for ext in {'dev', 'b', 'rc'}:
83 for ext in {'dev', 'b', 'rc'}:
84 if ext in extra:
84 if ext in extra:
85 return False
85 return False
86 return True
86 return True
87
87
88 if is_stable(iprelease['_version_extra']):
88 if is_stable(iprelease['_version_extra']):
89 tags.add('ipystable')
89 tags.add('ipystable')
90 print('Adding Tag: ipystable')
90 else:
91 else:
91 tags.add('ipydev')
92 tags.add('ipydev')
93 print('Adding Tag: ipydev')
92 rst_prolog += """
94 rst_prolog += """
93 .. warning::
95 .. warning::
94
96
95 This documentation covers a development version of IPython. The development
97 This documentation covers a development version of IPython. The development
96 version may differ significantly from the latest stable release.
98 version may differ significantly from the latest stable release.
97 """
99 """
98
100
99 rst_prolog += """
101 rst_prolog += """
100 .. important::
102 .. important::
101
103
102 This documentation covers IPython versions 6.0 and higher. Beginning with
104 This documentation covers IPython versions 6.0 and higher. Beginning with
103 version 6.0, IPython stopped supporting compatibility with Python versions
105 version 6.0, IPython stopped supporting compatibility with Python versions
104 lower than 3.3 including all versions of Python 2.7.
106 lower than 3.3 including all versions of Python 2.7.
105
107
106 If you are looking for an IPython version compatible with Python 2.7,
108 If you are looking for an IPython version compatible with Python 2.7,
107 please use the IPython 5.x LTS release and refer to its documentation (LTS
109 please use the IPython 5.x LTS release and refer to its documentation (LTS
108 is the long term support release).
110 is the long term support release).
109
111
110 """
112 """
111
113
112 # The master toctree document.
114 # The master toctree document.
113 master_doc = 'index'
115 master_doc = 'index'
114
116
115 # General substitutions.
117 # General substitutions.
116 project = 'IPython'
118 project = 'IPython'
117 copyright = 'The IPython Development Team'
119 copyright = 'The IPython Development Team'
118
120
119 # ghissue config
121 # ghissue config
120 github_project_url = "https://github.com/ipython/ipython"
122 github_project_url = "https://github.com/ipython/ipython"
121
123
122 # numpydoc config
124 # numpydoc config
123 numpydoc_show_class_members = False # Otherwise Sphinx emits thousands of warnings
125 numpydoc_show_class_members = False # Otherwise Sphinx emits thousands of warnings
124 numpydoc_class_members_toctree = False
126 numpydoc_class_members_toctree = False
125
127
126 # The default replacements for |version| and |release|, also used in various
128 # The default replacements for |version| and |release|, also used in various
127 # other places throughout the built documents.
129 # other places throughout the built documents.
128 #
130 #
129 # The full version, including alpha/beta/rc tags.
131 # The full version, including alpha/beta/rc tags.
130 release = "%s" % iprelease['version']
132 release = "%s" % iprelease['version']
131 # Just the X.Y.Z part, no '-dev'
133 # Just the X.Y.Z part, no '-dev'
132 version = iprelease['version'].split('-', 1)[0]
134 version = iprelease['version'].split('-', 1)[0]
133
135
134
136
135 # There are two options for replacing |today|: either, you set today to some
137 # There are two options for replacing |today|: either, you set today to some
136 # non-false value, then it is used:
138 # non-false value, then it is used:
137 #today = ''
139 #today = ''
138 # Else, today_fmt is used as the format for a strftime call.
140 # Else, today_fmt is used as the format for a strftime call.
139 today_fmt = '%B %d, %Y'
141 today_fmt = '%B %d, %Y'
140
142
141 # List of documents that shouldn't be included in the build.
143 # List of documents that shouldn't be included in the build.
142 #unused_docs = []
144 #unused_docs = []
143
145
144 # Exclude these glob-style patterns when looking for source files. They are
146 # Exclude these glob-style patterns when looking for source files. They are
145 # relative to the source/ directory.
147 # relative to the source/ directory.
146 exclude_patterns = []
148 exclude_patterns = []
147
149
148
150
149 # If true, '()' will be appended to :func: etc. cross-reference text.
151 # If true, '()' will be appended to :func: etc. cross-reference text.
150 #add_function_parentheses = True
152 #add_function_parentheses = True
151
153
152 # If true, the current module name will be prepended to all description
154 # If true, the current module name will be prepended to all description
153 # unit titles (such as .. function::).
155 # unit titles (such as .. function::).
154 #add_module_names = True
156 #add_module_names = True
155
157
156 # If true, sectionauthor and moduleauthor directives will be shown in the
158 # If true, sectionauthor and moduleauthor directives will be shown in the
157 # output. They are ignored by default.
159 # output. They are ignored by default.
158 #show_authors = False
160 #show_authors = False
159
161
160 # The name of the Pygments (syntax highlighting) style to use.
162 # The name of the Pygments (syntax highlighting) style to use.
161 pygments_style = 'sphinx'
163 pygments_style = 'sphinx'
162
164
163 # Set the default role so we can use `foo` instead of ``foo``
165 # Set the default role so we can use `foo` instead of ``foo``
164 default_role = 'literal'
166 default_role = 'literal'
165
167
166 # Options for HTML output
168 # Options for HTML output
167 # -----------------------
169 # -----------------------
168
170
169 # The style sheet to use for HTML and HTML Help pages. A file of that name
171 # The style sheet to use for HTML and HTML Help pages. A file of that name
170 # must exist either in Sphinx' static/ path, or in one of the custom paths
172 # must exist either in Sphinx' static/ path, or in one of the custom paths
171 # given in html_static_path.
173 # given in html_static_path.
172 # html_style = 'default.css'
174 # html_style = 'default.css'
173
175
174
176
175 # The name for this set of Sphinx documents. If None, it defaults to
177 # The name for this set of Sphinx documents. If None, it defaults to
176 # "<project> v<release> documentation".
178 # "<project> v<release> documentation".
177 #html_title = None
179 #html_title = None
178
180
179 # The name of an image file (within the static path) to place at the top of
181 # The name of an image file (within the static path) to place at the top of
180 # the sidebar.
182 # the sidebar.
181 #html_logo = None
183 #html_logo = None
182
184
183 # Add any paths that contain custom static files (such as style sheets) here,
185 # Add any paths that contain custom static files (such as style sheets) here,
184 # relative to this directory. They are copied after the builtin static files,
186 # relative to this directory. They are copied after the builtin static files,
185 # so a file named "default.css" will overwrite the builtin "default.css".
187 # so a file named "default.css" will overwrite the builtin "default.css".
186 html_static_path = ['_static']
188 html_static_path = ['_static']
187
189
188 # Favicon needs the directory name
190 # Favicon needs the directory name
189 html_favicon = '_static/favicon.ico'
191 html_favicon = '_static/favicon.ico'
190 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
192 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
191 # using the given strftime format.
193 # using the given strftime format.
192 html_last_updated_fmt = '%b %d, %Y'
194 html_last_updated_fmt = '%b %d, %Y'
193
195
194 # If true, SmartyPants will be used to convert quotes and dashes to
196 # If true, SmartyPants will be used to convert quotes and dashes to
195 # typographically correct entities.
197 # typographically correct entities.
196 #html_use_smartypants = True
198 #html_use_smartypants = True
197
199
198 # Custom sidebar templates, maps document names to template names.
200 # Custom sidebar templates, maps document names to template names.
199 #html_sidebars = {}
201 #html_sidebars = {}
200
202
201 # Additional templates that should be rendered to pages, maps page names to
203 # Additional templates that should be rendered to pages, maps page names to
202 # template names.
204 # template names.
203 html_additional_pages = {
205 html_additional_pages = {
204 'interactive/htmlnotebook': 'notebook_redirect.html',
206 'interactive/htmlnotebook': 'notebook_redirect.html',
205 'interactive/notebook': 'notebook_redirect.html',
207 'interactive/notebook': 'notebook_redirect.html',
206 'interactive/nbconvert': 'notebook_redirect.html',
208 'interactive/nbconvert': 'notebook_redirect.html',
207 'interactive/public_server': 'notebook_redirect.html',
209 'interactive/public_server': 'notebook_redirect.html',
208 }
210 }
209
211
210 # If false, no module index is generated.
212 # If false, no module index is generated.
211 #html_use_modindex = True
213 #html_use_modindex = True
212
214
213 # If true, the reST sources are included in the HTML build as _sources/<name>.
215 # If true, the reST sources are included in the HTML build as _sources/<name>.
214 #html_copy_source = True
216 #html_copy_source = True
215
217
216 # If true, an OpenSearch description file will be output, and all pages will
218 # If true, an OpenSearch description file will be output, and all pages will
217 # contain a <link> tag referring to it. The value of this option must be the
219 # contain a <link> tag referring to it. The value of this option must be the
218 # base URL from which the finished HTML is served.
220 # base URL from which the finished HTML is served.
219 #html_use_opensearch = ''
221 #html_use_opensearch = ''
220
222
221 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
223 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
222 #html_file_suffix = ''
224 #html_file_suffix = ''
223
225
224 # Output file base name for HTML help builder.
226 # Output file base name for HTML help builder.
225 htmlhelp_basename = 'ipythondoc'
227 htmlhelp_basename = 'ipythondoc'
226
228
227 intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
229 intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
228 'rpy2': ('https://rpy2.readthedocs.io/en/version_2.8.x/', None),
230 'rpy2': ('https://rpy2.readthedocs.io/en/version_2.8.x/', None),
229 'traitlets': ('https://traitlets.readthedocs.io/en/latest/', None),
231 'traitlets': ('https://traitlets.readthedocs.io/en/latest/', None),
230 'jupyterclient': ('https://jupyter-client.readthedocs.io/en/latest/', None),
232 'jupyterclient': ('https://jupyter-client.readthedocs.io/en/latest/', None),
231 'ipyparallel': ('https://ipyparallel.readthedocs.io/en/latest/', None),
233 'ipyparallel': ('https://ipyparallel.readthedocs.io/en/latest/', None),
232 'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
234 'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
233 'jedi': ('https://jedi.readthedocs.io/en/latest/', None),
235 'jedi': ('https://jedi.readthedocs.io/en/latest/', None),
234 'traitlets': ('https://traitlets.readthedocs.io/en/latest/', None),
236 'traitlets': ('https://traitlets.readthedocs.io/en/latest/', None),
235 'ipykernel': ('https://ipykernel.readthedocs.io/en/latest/', None),
237 'ipykernel': ('https://ipykernel.readthedocs.io/en/latest/', None),
236 'prompt_toolkit' : ('https://python-prompt-toolkit.readthedocs.io/en/stable/', None),
238 'prompt_toolkit' : ('https://python-prompt-toolkit.readthedocs.io/en/stable/', None),
237 'ipywidgets': ('https://ipywidgets.readthedocs.io/en/stable/', None),
239 'ipywidgets': ('https://ipywidgets.readthedocs.io/en/stable/', None),
238 'ipyparallel': ('https://ipyparallel.readthedocs.io/en/stable/', None)
240 'ipyparallel': ('https://ipyparallel.readthedocs.io/en/stable/', None)
239 }
241 }
240
242
241 # Options for LaTeX output
243 # Options for LaTeX output
242 # ------------------------
244 # ------------------------
243
245
244 # The paper size ('letter' or 'a4').
246 # The paper size ('letter' or 'a4').
245 latex_paper_size = 'letter'
247 latex_paper_size = 'letter'
246
248
247 # The font size ('10pt', '11pt' or '12pt').
249 # The font size ('10pt', '11pt' or '12pt').
248 latex_font_size = '11pt'
250 latex_font_size = '11pt'
249
251
250 # Grouping the document tree into LaTeX files. List of tuples
252 # Grouping the document tree into LaTeX files. List of tuples
251 # (source start file, target name, title, author, document class [howto/manual]).
253 # (source start file, target name, title, author, document class [howto/manual]).
252
254
253 latex_documents = [
255 latex_documents = [
254 ('index', 'ipython.tex', 'IPython Documentation',
256 ('index', 'ipython.tex', 'IPython Documentation',
255 u"""The IPython Development Team""", 'manual', True),
257 u"""The IPython Development Team""", 'manual', True),
256 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
258 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
257 'Using IPython on Windows HPC Server 2008',
259 'Using IPython on Windows HPC Server 2008',
258 u"Brian E. Granger", 'manual', True)
260 u"Brian E. Granger", 'manual', True)
259 ]
261 ]
260
262
261 # The name of an image file (relative to this directory) to place at the top of
263 # The name of an image file (relative to this directory) to place at the top of
262 # the title page.
264 # the title page.
263 #latex_logo = None
265 #latex_logo = None
264
266
265 # For "manual" documents, if this is true, then toplevel headings are parts,
267 # For "manual" documents, if this is true, then toplevel headings are parts,
266 # not chapters.
268 # not chapters.
267 #latex_use_parts = False
269 #latex_use_parts = False
268
270
269 # Additional stuff for the LaTeX preamble.
271 # Additional stuff for the LaTeX preamble.
270 #latex_preamble = ''
272 #latex_preamble = ''
271
273
272 # Documents to append as an appendix to all manuals.
274 # Documents to append as an appendix to all manuals.
273 #latex_appendices = []
275 #latex_appendices = []
274
276
275 # If false, no module index is generated.
277 # If false, no module index is generated.
276 latex_use_modindex = True
278 latex_use_modindex = True
277
279
278
280
279 # Options for texinfo output
281 # Options for texinfo output
280 # --------------------------
282 # --------------------------
281
283
282 texinfo_documents = [
284 texinfo_documents = [
283 (master_doc, 'ipython', 'IPython Documentation',
285 (master_doc, 'ipython', 'IPython Documentation',
284 'The IPython Development Team',
286 'The IPython Development Team',
285 'IPython',
287 'IPython',
286 'IPython Documentation',
288 'IPython Documentation',
287 'Programming',
289 'Programming',
288 1),
290 1),
289 ]
291 ]
290
292
291 modindex_common_prefix = ['IPython.']
293 modindex_common_prefix = ['IPython.']
292
294
293
295
294 # Cleanup
296 # Cleanup
295 # -------
297 # -------
296 # delete release info to avoid pickling errors from sphinx
298 # delete release info to avoid pickling errors from sphinx
297
299
298 del iprelease
300 del iprelease
@@ -1,66 +1,68 b''
1 .. Developers should add in this file, during each release cycle, information
1 .. Developers should add in this file, during each release cycle, information
2 .. about important changes they've made, in a summary format that's meant for
2 .. about important changes they've made, in a summary format that's meant for
3 .. end users. For each release we normally have three sections: features, bug
3 .. end users. For each release we normally have three sections: features, bug
4 .. fixes and api breakage.
4 .. fixes and api breakage.
5 .. Please remember to credit the authors of the contributions by name,
5 .. Please remember to credit the authors of the contributions by name,
6 .. especially when they are new users or developers who do not regularly
6 .. especially when they are new users or developers who do not regularly
7 .. participate in IPython's development.
7 .. participate in IPython's development.
8
8
9 .. _whatsnew_index:
9 .. _whatsnew_index:
10
10
11 =====================
11 =====================
12 What's new in IPython
12 What's new in IPython
13 =====================
13 =====================
14
14
15 ..
15 ..
16 this will appear in the docs if we are nto releasing a versin (ie is
16 this will appear in the docs if we are nto releasing a versin (ie is
17 `_version_extra` in release.py is empty stringA
17 `_version_extra` in release.py is empty stringA
18
18
19 .. only:: ipydev
19 .. only:: ipydev
20
20
21 Developpement version in-progress features:
21 Developpement version in-progress features:
22
22
23 .. toctree::
23 .. toctree::
24
24 development
25 development
25
26
26 ..
27 ..
27 this make a hidden toctree that avoid sphinx to complain about documents
28 this make a hidden toctree that avoid sphinx to complain about documents
28 included nowhere when building docs for stable
29 included nowhere when building docs for stable
29
30
30 .. only:: ipystable
31 .. only:: ipystable
31
32
32 .. toctree::
33 .. toctree::
33 :hidden:
34 :hidden:
35
34 development
36 development
35
37
36 This section documents the changes that have been made in various versions of
38 This section documents the changes that have been made in various versions of
37 IPython. Users should consult these pages to learn about new features, bug
39 IPython. Users should consult these pages to learn about new features, bug
38 fixes and backwards incompatibilities. Developers should summarize the
40 fixes and backwards incompatibilities. Developers should summarize the
39 development work they do here in a user friendly format.
41 development work they do here in a user friendly format.
40
42
41 .. toctree::
43 .. toctree::
42 :maxdepth: 1
44 :maxdepth: 1
43
45
44 version7
46 version7
45 version6
47 version6
46 github-stats-6
48 github-stats-6
47 version5
49 version5
48 github-stats-5
50 github-stats-5
49 version4
51 version4
50 github-stats-4
52 github-stats-4
51 version3
53 version3
52 github-stats-3
54 github-stats-3
53 version3_widget_migration
55 version3_widget_migration
54 version2.0
56 version2.0
55 github-stats-2.0
57 github-stats-2.0
56 version1.0
58 version1.0
57 github-stats-1.0
59 github-stats-1.0
58 version0.13
60 version0.13
59 github-stats-0.13
61 github-stats-0.13
60 version0.12
62 version0.12
61 github-stats-0.12
63 github-stats-0.12
62 version0.11
64 version0.11
63 github-stats-0.11
65 github-stats-0.11
64 version0.10
66 version0.10
65 version0.9
67 version0.9
66 version0.8
68 version0.8
General Comments 0
You need to be logged in to leave comments. Login now