12
12
# All configuration values have a default; values that are commented out
13
13
# serve to show the default.
14
14
15
- import sys
16
15
import os
16
+ import sys
17
+
17
18
import xbatcher
18
19
19
20
# If extensions (or modules to document with autodoc) are in another directory,
20
21
# add these directories to sys.path here. If the directory is relative to the
21
22
# documentation root, use os.path.abspath to make it absolute, like shown here.
22
- #sys.path.insert(0, os.path.abspath('.'))
23
- #sys.path.insert(os.path.abspath('..'))
23
+ # sys.path.insert(0, os.path.abspath('.'))
24
+ # sys.path.insert(os.path.abspath('..'))
24
25
25
- print "python exec:" , sys .executable
26
- print "sys.path:" , sys .path
26
+ print ('python exec:' , sys .executable )
27
+ print ('sys.path:' , sys .path )
28
+ print ('xbatcher.version:' , xbatcher .version )
27
29
28
30
29
31
# -- General configuration ------------------------------------------------
30
32
31
33
# If your documentation needs a minimal Sphinx version, state it here.
32
- #needs_sphinx = '1.0'
34
+ # needs_sphinx = '1.0'
33
35
34
36
# Add any Sphinx extension module names here, as strings. They can be
35
37
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
36
38
# ones.
37
39
extensions = [
38
- 'sphinx.ext.mathjax' , 'sphinx.ext.autodoc' ,
40
+ 'sphinx.ext.mathjax' ,
41
+ 'sphinx.ext.autodoc' ,
39
42
'sphinx.ext.autosummary' ,
40
43
'sphinx.ext.extlinks' ,
41
44
'sphinx.ext.viewcode' ,
50
53
# https://nbsphinx.readthedocs.io/en/0.2.14/never-execute.html
51
54
nbsphinx_execute = 'never'
52
55
56
+
53
57
# http://stackoverflow.com/questions/5599254/how-to-use-sphinxs-autodoc-to-document-a-classs-init-self-method
54
58
def skip (app , what , name , obj , skip , options ):
55
- if name == " __init__" :
59
+ if name == ' __init__' :
56
60
return False
57
61
return skip
58
62
63
+
59
64
def setup (app ):
60
- app .connect ("autodoc-skip-member" , skip )
65
+ app .connect ('autodoc-skip-member' , skip )
66
+
61
67
62
68
# link to github issues
63
69
extlinks = {'issue' : ('https://github.com/xbatcher/xbatcher/issues/%s' , 'GH' )}
@@ -73,7 +79,7 @@ def setup(app):
73
79
source_suffix = '.rst'
74
80
75
81
# The encoding of source files.
76
- #source_encoding = 'utf-8-sig'
82
+ # source_encoding = 'utf-8-sig'
77
83
78
84
# The master toctree document.
79
85
master_doc = 'index'
@@ -93,41 +99,41 @@ def setup(app):
93
99
94
100
# The language for content autogenerated by Sphinx. Refer to documentation
95
101
# for a list of supported languages.
96
- #language = None
102
+ # language = None
97
103
98
104
# There are two options for replacing |today|: either, you set today to some
99
105
# non-false value, then it is used:
100
- #today = ''
106
+ # today = ''
101
107
# Else, today_fmt is used as the format for a strftime call.
102
- #today_fmt = '%B %d, %Y'
108
+ # today_fmt = '%B %d, %Y'
103
109
104
110
# List of patterns, relative to source directory, that match files and
105
111
# directories to ignore when looking for source files.
106
112
exclude_patterns = ['_build' ]
107
113
108
114
# The reST default role (used for this markup: `text`) to use for all
109
115
# documents.
110
- #default_role = None
116
+ # default_role = None
111
117
112
118
# If true, '()' will be appended to :func: etc. cross-reference text.
113
- #add_function_parentheses = True
119
+ # add_function_parentheses = True
114
120
115
121
# If true, the current module name will be prepended to all description
116
122
# unit titles (such as .. function::).
117
- #add_module_names = True
123
+ # add_module_names = True
118
124
119
125
# If true, sectionauthor and moduleauthor directives will be shown in the
120
126
# output. They are ignored by default.
121
- #show_authors = False
127
+ # show_authors = False
122
128
123
129
# The name of the Pygments (syntax highlighting) style to use.
124
130
pygments_style = 'sphinx'
125
131
126
132
# A list of ignored prefixes for module index sorting.
127
- #modindex_common_prefix = []
133
+ # modindex_common_prefix = []
128
134
129
135
# If true, keep warnings as "system message" paragraphs in the built documents.
130
- #keep_warnings = False
136
+ # keep_warnings = False
131
137
132
138
133
139
# -- Options for HTML output ----------------------------------------------
@@ -136,37 +142,38 @@ def setup(app):
136
142
137
143
if not on_rtd : # only import and set the theme if we're building docs locally
138
144
import sphinx_rtd_theme
145
+
139
146
html_theme = 'sphinx_rtd_theme'
140
147
html_theme_path = [sphinx_rtd_theme .get_html_theme_path ()]
141
148
142
149
# The theme to use for HTML and HTML Help pages. See the documentation for
143
150
# a list of builtin themes.
144
- #tml_theme = 'default'
145
- html_theme = " sphinx_rtd_theme"
151
+ # tml_theme = 'default'
152
+ html_theme = ' sphinx_rtd_theme'
146
153
147
154
# Theme options are theme-specific and customize the look and feel of a theme
148
155
# further. For a list of options available for each theme, see the
149
156
# documentation.
150
- #html_theme_options = {}
157
+ # html_theme_options = {}
151
158
152
159
# Add any paths that contain custom themes here, relative to this directory.
153
- #html_theme_path = []
160
+ # html_theme_path = []
154
161
155
162
# The name for this set of Sphinx documents. If None, it defaults to
156
163
# "<project> v<release> documentation".
157
- #html_title = None
164
+ # html_title = None
158
165
159
166
# A shorter title for the navigation bar. Default is the same as html_title.
160
- #html_short_title = None
167
+ # html_short_title = None
161
168
162
169
# The name of an image file (relative to this directory) to place at the top
163
170
# of the sidebar.
164
- #html_logo = None
171
+ # html_logo = None
165
172
166
173
# The name of an image file (within the static path) to use as favicon of the
167
174
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
168
175
# pixels large.
169
- #html_favicon = None
176
+ # html_favicon = None
170
177
171
178
# Add any paths that contain custom static files (such as style sheets) here,
172
179
# relative to this directory. They are copied after the builtin static files,
@@ -176,48 +183,48 @@ def setup(app):
176
183
# Add any extra paths that contain custom files (such as robots.txt or
177
184
# .htaccess) here, relative to this directory. These files are copied
178
185
# directly to the root of the documentation.
179
- #html_extra_path = []
186
+ # html_extra_path = []
180
187
181
188
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
182
189
# using the given strftime format.
183
- #html_last_updated_fmt = '%b %d, %Y'
190
+ # html_last_updated_fmt = '%b %d, %Y'
184
191
185
192
# If true, SmartyPants will be used to convert quotes and dashes to
186
193
# typographically correct entities.
187
- #html_use_smartypants = True
194
+ # html_use_smartypants = True
188
195
189
196
# Custom sidebar templates, maps document names to template names.
190
- #html_sidebars = {}
197
+ # html_sidebars = {}
191
198
192
199
# Additional templates that should be rendered to pages, maps page names to
193
200
# template names.
194
- #html_additional_pages = {}
201
+ # html_additional_pages = {}
195
202
196
203
# If false, no module index is generated.
197
- #html_domain_indices = True
204
+ # html_domain_indices = True
198
205
199
206
# If false, no index is generated.
200
- #html_use_index = True
207
+ # html_use_index = True
201
208
202
209
# If true, the index is split into individual pages for each letter.
203
- #html_split_index = False
210
+ # html_split_index = False
204
211
205
212
# If true, links to the reST sources are added to the pages.
206
- #html_show_sourcelink = True
213
+ # html_show_sourcelink = True
207
214
208
215
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
209
- #html_show_sphinx = True
216
+ # html_show_sphinx = True
210
217
211
218
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
212
- #html_show_copyright = True
219
+ # html_show_copyright = True
213
220
214
221
# If true, an OpenSearch description file will be output, and all pages will
215
222
# contain a <link> tag referring to it. The value of this option must be the
216
223
# base URL from which the finished HTML is served.
217
- #html_use_opensearch = ''
224
+ # html_use_opensearch = ''
218
225
219
226
# This is the file name suffix for HTML files (e.g. ".xhtml").
220
- #html_file_suffix = None
227
+ # html_file_suffix = None
221
228
222
229
# Output file base name for HTML help builder.
223
230
htmlhelp_basename = 'xbatcherdoc'
@@ -226,56 +233,64 @@ def setup(app):
226
233
# -- Options for LaTeX output ---------------------------------------------
227
234
228
235
latex_elements = {
229
- # The paper size ('letterpaper' or 'a4paper').
230
- #'papersize': 'letterpaper',
231
-
232
- # The font size ('10pt', '11pt' or '12pt').
233
- #'pointsize': '10pt',
234
-
235
- # Additional stuff for the LaTeX preamble.
236
- #'preamble': '',
236
+ # The paper size ('letterpaper' or 'a4paper').
237
+ # 'papersize': 'letterpaper',
238
+ # The font size ('10pt', '11pt' or '12pt').
239
+ # 'pointsize': '10pt',
240
+ # Additional stuff for the LaTeX preamble.
241
+ # 'preamble': '',
237
242
}
238
243
239
244
# Grouping the document tree into LaTeX files. List of tuples
240
245
# (source start file, target name, title,
241
246
# author, documentclass [howto, manual, or own class]).
242
247
latex_documents = [
243
- ('index' , 'xbatcher.tex' , u'xbatcher Documentation' ,
244
- u'xbatcher developers' , 'manual' ),
248
+ (
249
+ 'index' ,
250
+ 'xbatcher.tex' ,
251
+ u'xbatcher Documentation' ,
252
+ u'xbatcher developers' ,
253
+ 'manual' ,
254
+ ),
245
255
]
246
256
247
257
# The name of an image file (relative to this directory) to place at the top of
248
258
# the title page.
249
- #latex_logo = None
259
+ # latex_logo = None
250
260
251
261
# For "manual" documents, if this is true, then toplevel headings are parts,
252
262
# not chapters.
253
- #latex_use_parts = False
263
+ # latex_use_parts = False
254
264
255
265
# If true, show page references after internal links.
256
- #latex_show_pagerefs = False
266
+ # latex_show_pagerefs = False
257
267
258
268
# If true, show URL addresses after external links.
259
- #latex_show_urls = False
269
+ # latex_show_urls = False
260
270
261
271
# Documents to append as an appendix to all manuals.
262
- #latex_appendices = []
272
+ # latex_appendices = []
263
273
264
274
# If false, no module index is generated.
265
- #latex_domain_indices = True
275
+ # latex_domain_indices = True
266
276
267
277
268
278
# -- Options for manual page output ---------------------------------------
269
279
270
280
# One entry per manual page. List of tuples
271
281
# (source start file, name, description, authors, manual section).
272
282
man_pages = [
273
- ('index' , 'xbatcher' , u'xbatcher Documentation' ,
274
- [u'xbatcher developers' ], 1 )
283
+ (
284
+ 'index' ,
285
+ 'xbatcher' ,
286
+ u'xbatcher Documentation' ,
287
+ [u'xbatcher developers' ],
288
+ 1 ,
289
+ )
275
290
]
276
291
277
292
# If true, show URL addresses after external links.
278
- #man_show_urls = False
293
+ # man_show_urls = False
279
294
280
295
281
296
# -- Options for Texinfo output -------------------------------------------
@@ -284,26 +299,32 @@ def setup(app):
284
299
# (source start file, target name, title, author,
285
300
# dir menu entry, description, category)
286
301
texinfo_documents = [
287
- ('index' , 'xbatcher' , u'xbatcher Documentation' ,
288
- u'xbatcher developers' , 'xbatcher' , 'One line description of project.' ,
289
- 'Miscellaneous' ),
302
+ (
303
+ 'index' ,
304
+ 'xbatcher' ,
305
+ u'xbatcher Documentation' ,
306
+ u'xbatcher developers' ,
307
+ 'xbatcher' ,
308
+ 'One line description of project.' ,
309
+ 'Miscellaneous' ,
310
+ ),
290
311
]
291
312
292
313
# Documents to append as an appendix to all manuals.
293
- #texinfo_appendices = []
314
+ # texinfo_appendices = []
294
315
295
316
# If false, no module index is generated.
296
- #texinfo_domain_indices = True
317
+ # texinfo_domain_indices = True
297
318
298
319
# How to display URL addresses: 'footnote', 'no', or 'inline'.
299
- #texinfo_show_urls = 'footnote'
320
+ # texinfo_show_urls = 'footnote'
300
321
301
322
# If true, do not generate a @detailmenu in the "Top" node's menu.
302
- #texinfo_no_detailmenu = False
323
+ # texinfo_no_detailmenu = False
303
324
304
325
305
326
# Example configuration for intersphinx: refer to the Python standard library.
306
327
intersphinx_mapping = {
307
328
'python' : ('https://docs.python.org/3/' , None ),
308
- 'xarray' : ('http://xarray.pydata.org/en/stable/' , None )
329
+ 'xarray' : ('http://xarray.pydata.org/en/stable/' , None ),
309
330
}
0 commit comments