##// END OF EJS Templates
Merge pull request #4763 from takluyver/docs-toctree-warnings...
Min RK -
r14056:7a3cfad0 merge
parent child Browse files
Show More
@@ -1,242 +1,246 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 # If your extensions are in another directory, add it here. If the directory
28 # If your extensions are in another directory, add it here. If the directory
29 # is relative to the documentation root, use os.path.abspath to make it
29 # is relative to the documentation root, use os.path.abspath to make it
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 # We load the ipython release info into a dict by explicit execution
33 # We load the ipython release info into a dict by explicit execution
34 iprelease = {}
34 iprelease = {}
35 execfile('../../IPython/core/release.py',iprelease)
35 execfile('../../IPython/core/release.py',iprelease)
36
36
37 # General configuration
37 # General configuration
38 # ---------------------
38 # ---------------------
39
39
40 # Add any Sphinx extension module names here, as strings. They can be extensions
40 # Add any Sphinx extension module names here, as strings. They can be extensions
41 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
41 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
42 extensions = [
42 extensions = [
43 'matplotlib.sphinxext.mathmpl',
43 'matplotlib.sphinxext.mathmpl',
44 'matplotlib.sphinxext.only_directives',
44 'matplotlib.sphinxext.only_directives',
45 'matplotlib.sphinxext.plot_directive',
45 'matplotlib.sphinxext.plot_directive',
46 'sphinx.ext.autodoc',
46 'sphinx.ext.autodoc',
47 'sphinx.ext.autosummary',
47 'sphinx.ext.autosummary',
48 'sphinx.ext.doctest',
48 'sphinx.ext.doctest',
49 'sphinx.ext.inheritance_diagram',
49 'sphinx.ext.inheritance_diagram',
50 'sphinx.ext.intersphinx',
50 'sphinx.ext.intersphinx',
51 'IPython.sphinxext.ipython_console_highlighting',
51 'IPython.sphinxext.ipython_console_highlighting',
52 'IPython.sphinxext.ipython_directive',
52 'IPython.sphinxext.ipython_directive',
53 'numpydoc', # to preprocess docstrings
53 'numpydoc', # to preprocess docstrings
54 'github', # for easy GitHub links
54 'github', # for easy GitHub links
55 ]
55 ]
56
56
57 if ON_RTD:
57 if ON_RTD:
58 # Remove extensions not currently supported on RTD
58 # Remove extensions not currently supported on RTD
59 extensions.remove('matplotlib.sphinxext.only_directives')
59 extensions.remove('matplotlib.sphinxext.only_directives')
60 extensions.remove('matplotlib.sphinxext.mathmpl')
60 extensions.remove('matplotlib.sphinxext.mathmpl')
61 extensions.remove('matplotlib.sphinxext.plot_directive')
61 extensions.remove('matplotlib.sphinxext.plot_directive')
62 extensions.remove('IPython.sphinxext.ipython_directive')
62 extensions.remove('IPython.sphinxext.ipython_directive')
63 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
63 extensions.remove('IPython.sphinxext.ipython_console_highlighting')
64
64
65 # Add any paths that contain templates here, relative to this directory.
65 # Add any paths that contain templates here, relative to this directory.
66 templates_path = ['_templates']
66 templates_path = ['_templates']
67
67
68 # The suffix of source filenames.
68 # The suffix of source filenames.
69 source_suffix = '.rst'
69 source_suffix = '.rst'
70
70
71 if iprelease['_version_extra']:
71 if iprelease['_version_extra']:
72 rst_prolog = """
72 rst_prolog = """
73 .. note::
73 .. note::
74
74
75 This documentation is for a development version of IPython. There may be
75 This documentation is for a development version of IPython. There may be
76 significant differences from the latest stable release (1.1.0).
76 significant differences from the latest stable release (1.1.0).
77
77
78 """
78 """
79
79
80 # The master toctree document.
80 # The master toctree document.
81 master_doc = 'index'
81 master_doc = 'index'
82
82
83 # General substitutions.
83 # General substitutions.
84 project = 'IPython'
84 project = 'IPython'
85 copyright = '2008, The IPython Development Team'
85 copyright = '2008, The IPython Development Team'
86
86
87 # ghissue config
87 # ghissue config
88 github_project_url = "https://github.com/ipython/ipython"
88 github_project_url = "https://github.com/ipython/ipython"
89
89
90 # numpydoc config
91 numpydoc_show_class_members = False # Otherwise Sphinx emits thousands of warnings
92 numpydoc_class_members_toctree = False
93
90 # The default replacements for |version| and |release|, also used in various
94 # The default replacements for |version| and |release|, also used in various
91 # other places throughout the built documents.
95 # other places throughout the built documents.
92 #
96 #
93 # The full version, including alpha/beta/rc tags.
97 # The full version, including alpha/beta/rc tags.
94 codename = iprelease['codename']
98 codename = iprelease['codename']
95 release = "%s: %s" % (iprelease['version'], codename)
99 release = "%s: %s" % (iprelease['version'], codename)
96 # Just the X.Y.Z part, no '-dev'
100 # Just the X.Y.Z part, no '-dev'
97 version = iprelease['version'].split('-', 1)[0]
101 version = iprelease['version'].split('-', 1)[0]
98
102
99
103
100 # There are two options for replacing |today|: either, you set today to some
104 # There are two options for replacing |today|: either, you set today to some
101 # non-false value, then it is used:
105 # non-false value, then it is used:
102 #today = ''
106 #today = ''
103 # Else, today_fmt is used as the format for a strftime call.
107 # Else, today_fmt is used as the format for a strftime call.
104 today_fmt = '%B %d, %Y'
108 today_fmt = '%B %d, %Y'
105
109
106 # List of documents that shouldn't be included in the build.
110 # List of documents that shouldn't be included in the build.
107 #unused_docs = []
111 #unused_docs = []
108
112
109 # List of directories, relative to source directories, that shouldn't be searched
113 # List of directories, relative to source directories, that shouldn't be searched
110 # for source files.
114 # for source files.
111 exclude_dirs = ['attic']
115 exclude_dirs = ['attic']
112
116
113 # If true, '()' will be appended to :func: etc. cross-reference text.
117 # If true, '()' will be appended to :func: etc. cross-reference text.
114 #add_function_parentheses = True
118 #add_function_parentheses = True
115
119
116 # If true, the current module name will be prepended to all description
120 # If true, the current module name will be prepended to all description
117 # unit titles (such as .. function::).
121 # unit titles (such as .. function::).
118 #add_module_names = True
122 #add_module_names = True
119
123
120 # If true, sectionauthor and moduleauthor directives will be shown in the
124 # If true, sectionauthor and moduleauthor directives will be shown in the
121 # output. They are ignored by default.
125 # output. They are ignored by default.
122 #show_authors = False
126 #show_authors = False
123
127
124 # The name of the Pygments (syntax highlighting) style to use.
128 # The name of the Pygments (syntax highlighting) style to use.
125 pygments_style = 'sphinx'
129 pygments_style = 'sphinx'
126
130
127
131
128 # Options for HTML output
132 # Options for HTML output
129 # -----------------------
133 # -----------------------
130
134
131 # The style sheet to use for HTML and HTML Help pages. A file of that name
135 # The style sheet to use for HTML and HTML Help pages. A file of that name
132 # must exist either in Sphinx' static/ path, or in one of the custom paths
136 # must exist either in Sphinx' static/ path, or in one of the custom paths
133 # given in html_static_path.
137 # given in html_static_path.
134 html_style = 'default.css'
138 html_style = 'default.css'
135
139
136 # The name for this set of Sphinx documents. If None, it defaults to
140 # The name for this set of Sphinx documents. If None, it defaults to
137 # "<project> v<release> documentation".
141 # "<project> v<release> documentation".
138 #html_title = None
142 #html_title = None
139
143
140 # The name of an image file (within the static path) to place at the top of
144 # The name of an image file (within the static path) to place at the top of
141 # the sidebar.
145 # the sidebar.
142 #html_logo = None
146 #html_logo = None
143
147
144 # Add any paths that contain custom static files (such as style sheets) here,
148 # Add any paths that contain custom static files (such as style sheets) here,
145 # relative to this directory. They are copied after the builtin static files,
149 # relative to this directory. They are copied after the builtin static files,
146 # so a file named "default.css" will overwrite the builtin "default.css".
150 # so a file named "default.css" will overwrite the builtin "default.css".
147 html_static_path = ['_static']
151 html_static_path = ['_static']
148
152
149 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
153 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
150 # using the given strftime format.
154 # using the given strftime format.
151 html_last_updated_fmt = '%b %d, %Y'
155 html_last_updated_fmt = '%b %d, %Y'
152
156
153 # If true, SmartyPants will be used to convert quotes and dashes to
157 # If true, SmartyPants will be used to convert quotes and dashes to
154 # typographically correct entities.
158 # typographically correct entities.
155 #html_use_smartypants = True
159 #html_use_smartypants = True
156
160
157 # Custom sidebar templates, maps document names to template names.
161 # Custom sidebar templates, maps document names to template names.
158 #html_sidebars = {}
162 #html_sidebars = {}
159
163
160 # Additional templates that should be rendered to pages, maps page names to
164 # Additional templates that should be rendered to pages, maps page names to
161 # template names.
165 # template names.
162 html_additional_pages = {
166 html_additional_pages = {
163 'interactive/htmlnotebook': 'htmlnotebook.html',
167 'interactive/htmlnotebook': 'htmlnotebook.html',
164 }
168 }
165
169
166 # If false, no module index is generated.
170 # If false, no module index is generated.
167 #html_use_modindex = True
171 #html_use_modindex = True
168
172
169 # If true, the reST sources are included in the HTML build as _sources/<name>.
173 # If true, the reST sources are included in the HTML build as _sources/<name>.
170 #html_copy_source = True
174 #html_copy_source = True
171
175
172 # If true, an OpenSearch description file will be output, and all pages will
176 # If true, an OpenSearch description file will be output, and all pages will
173 # contain a <link> tag referring to it. The value of this option must be the
177 # contain a <link> tag referring to it. The value of this option must be the
174 # base URL from which the finished HTML is served.
178 # base URL from which the finished HTML is served.
175 #html_use_opensearch = ''
179 #html_use_opensearch = ''
176
180
177 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
181 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
178 #html_file_suffix = ''
182 #html_file_suffix = ''
179
183
180 # Output file base name for HTML help builder.
184 # Output file base name for HTML help builder.
181 htmlhelp_basename = 'ipythondoc'
185 htmlhelp_basename = 'ipythondoc'
182
186
183 intersphinx_mapping = {'python': ('http://docs.python.org/2/', None)}
187 intersphinx_mapping = {'python': ('http://docs.python.org/2/', None)}
184
188
185 # Options for LaTeX output
189 # Options for LaTeX output
186 # ------------------------
190 # ------------------------
187
191
188 # The paper size ('letter' or 'a4').
192 # The paper size ('letter' or 'a4').
189 latex_paper_size = 'letter'
193 latex_paper_size = 'letter'
190
194
191 # The font size ('10pt', '11pt' or '12pt').
195 # The font size ('10pt', '11pt' or '12pt').
192 latex_font_size = '11pt'
196 latex_font_size = '11pt'
193
197
194 # Grouping the document tree into LaTeX files. List of tuples
198 # Grouping the document tree into LaTeX files. List of tuples
195 # (source start file, target name, title, author, document class [howto/manual]).
199 # (source start file, target name, title, author, document class [howto/manual]).
196
200
197 latex_documents = [
201 latex_documents = [
198 ('index', 'ipython.tex', 'IPython Documentation',
202 ('index', 'ipython.tex', 'IPython Documentation',
199 ur"""The IPython Development Team""", 'manual', True),
203 ur"""The IPython Development Team""", 'manual', True),
200 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
204 ('parallel/winhpc_index', 'winhpc_whitepaper.tex',
201 'Using IPython on Windows HPC Server 2008',
205 'Using IPython on Windows HPC Server 2008',
202 ur"Brian E. Granger", 'manual', True)
206 ur"Brian E. Granger", 'manual', True)
203 ]
207 ]
204
208
205 # The name of an image file (relative to this directory) to place at the top of
209 # The name of an image file (relative to this directory) to place at the top of
206 # the title page.
210 # the title page.
207 #latex_logo = None
211 #latex_logo = None
208
212
209 # For "manual" documents, if this is true, then toplevel headings are parts,
213 # For "manual" documents, if this is true, then toplevel headings are parts,
210 # not chapters.
214 # not chapters.
211 #latex_use_parts = False
215 #latex_use_parts = False
212
216
213 # Additional stuff for the LaTeX preamble.
217 # Additional stuff for the LaTeX preamble.
214 #latex_preamble = ''
218 #latex_preamble = ''
215
219
216 # Documents to append as an appendix to all manuals.
220 # Documents to append as an appendix to all manuals.
217 #latex_appendices = []
221 #latex_appendices = []
218
222
219 # If false, no module index is generated.
223 # If false, no module index is generated.
220 latex_use_modindex = True
224 latex_use_modindex = True
221
225
222
226
223 # Options for texinfo output
227 # Options for texinfo output
224 # --------------------------
228 # --------------------------
225
229
226 texinfo_documents = [
230 texinfo_documents = [
227 (master_doc, 'ipython', 'IPython Documentation',
231 (master_doc, 'ipython', 'IPython Documentation',
228 'The IPython Development Team',
232 'The IPython Development Team',
229 'IPython',
233 'IPython',
230 'IPython Documentation',
234 'IPython Documentation',
231 'Programming',
235 'Programming',
232 1),
236 1),
233 ]
237 ]
234
238
235 modindex_common_prefix = ['IPython.']
239 modindex_common_prefix = ['IPython.']
236
240
237
241
238 # Cleanup
242 # Cleanup
239 # -------
243 # -------
240 # delete release info to avoid pickling errors from sphinx
244 # delete release info to avoid pickling errors from sphinx
241
245
242 del iprelease
246 del iprelease
General Comments 0
You need to be logged in to leave comments. Login now