16
16
import sys
17
17
import os
18
18
from unittest .mock import Mock as MagicMock
19
+ import numcodecs
20
+
19
21
20
22
class Mock (MagicMock ):
21
23
@classmethod
@@ -36,7 +38,7 @@ def __getattr__(cls, name):
36
38
# -- General configuration ------------------------------------------------
37
39
38
40
# If your documentation needs a minimal Sphinx version, state it here.
39
- #needs_sphinx = '1.0'
41
+ # needs_sphinx = '1.0'
40
42
41
43
# Add any Sphinx extension module names here, as strings. They can be
42
44
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -62,7 +64,7 @@ def __getattr__(cls, name):
62
64
source_suffix = '.rst'
63
65
64
66
# The encoding of source files.
65
- #source_encoding = 'utf-8-sig'
67
+ # source_encoding = 'utf-8-sig'
66
68
67
69
# The main toctree document.
68
70
main_doc = 'index'
@@ -77,7 +79,6 @@ def __getattr__(cls, name):
77
79
# built documents.
78
80
#
79
81
# The short X.Y version.
80
- import numcodecs
81
82
version = numcodecs .__version__
82
83
# The full version, including alpha/beta/rc tags.
83
84
release = numcodecs .__version__
@@ -91,9 +92,9 @@ def __getattr__(cls, name):
91
92
92
93
# There are two options for replacing |today|: either, you set today to some
93
94
# non-false value, then it is used:
94
- #today = ''
95
+ # today = ''
95
96
# Else, today_fmt is used as the format for a strftime call.
96
- #today_fmt = '%B %d, %Y'
97
+ # today_fmt = '%B %d, %Y'
97
98
98
99
# List of patterns, relative to source directory, that match files and
99
100
# directories to ignore when looking for source files.
@@ -102,27 +103,27 @@ def __getattr__(cls, name):
102
103
103
104
# The reST default role (used for this markup: `text`) to use for all
104
105
# documents.
105
- #default_role = None
106
+ # default_role = None
106
107
107
108
# If true, '()' will be appended to :func: etc. cross-reference text.
108
- #add_function_parentheses = True
109
+ # add_function_parentheses = True
109
110
110
111
# If true, the current module name will be prepended to all description
111
112
# unit titles (such as .. function::).
112
- #add_module_names = True
113
+ # add_module_names = True
113
114
114
115
# If true, sectionauthor and moduleauthor directives will be shown in the
115
116
# output. They are ignored by default.
116
- #show_authors = False
117
+ # show_authors = False
117
118
118
119
# The name of the Pygments (syntax highlighting) style to use.
119
120
pygments_style = 'sphinx'
120
121
121
122
# A list of ignored prefixes for module index sorting.
122
- #modindex_common_prefix = []
123
+ # modindex_common_prefix = []
123
124
124
125
# If true, keep warnings as "system message" paragraphs in the built documents.
125
- #keep_warnings = False
126
+ # keep_warnings = False
126
127
127
128
# If true, `todo` and `todoList` produce output, else they produce nothing.
128
129
todo_include_todos = False
@@ -137,26 +138,26 @@ def __getattr__(cls, name):
137
138
# Theme options are theme-specific and customize the look and feel of a theme
138
139
# further. For a list of options available for each theme, see the
139
140
# documentation.
140
- #html_theme_options = {}
141
+ # html_theme_options = {}
141
142
142
143
# Add any paths that contain custom themes here, relative to this directory.
143
- #html_theme_path = []
144
+ # html_theme_path = []
144
145
145
146
# The name for this set of Sphinx documents.
146
147
# "<project> v<release> documentation" by default.
147
- #html_title = 'numcodecs v@@'
148
+ # html_title = 'numcodecs v@@'
148
149
149
150
# A shorter title for the navigation bar. Default is the same as html_title.
150
- #html_short_title = None
151
+ # html_short_title = None
151
152
152
153
# The name of an image file (relative to this directory) to place at the top
153
154
# of the sidebar.
154
- #html_logo = None
155
+ # html_logo = None
155
156
156
157
# The name of an image file (relative to this directory) to use as a favicon of
157
158
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
158
159
# pixels large.
159
- #html_favicon = None
160
+ # html_favicon = None
160
161
161
162
# Add any paths that contain custom static files (such as style sheets) here,
162
163
# relative to this directory. They are copied after the builtin static files,
@@ -166,124 +167,117 @@ def __getattr__(cls, name):
166
167
# Add any extra paths that contain custom files (such as robots.txt or
167
168
# .htaccess) here, relative to this directory. These files are copied
168
169
# directly to the root of the documentation.
169
- #html_extra_path = []
170
+ # html_extra_path = []
170
171
171
172
# If not None, a 'Last updated on:' timestamp is inserted at every page
172
173
# bottom, using the given strftime format.
173
174
# The empty string is equivalent to '%b %d, %Y'.
174
- #html_last_updated_fmt = None
175
+ # html_last_updated_fmt = None
175
176
176
177
# If true, SmartyPants will be used to convert quotes and dashes to
177
178
# typographically correct entities.
178
- #html_use_smartypants = True
179
+ # html_use_smartypants = True
179
180
180
181
# Custom sidebar templates, maps document names to template names.
181
- #html_sidebars = {}
182
+ # html_sidebars = {}
182
183
183
184
# Additional templates that should be rendered to pages, maps page names to
184
185
# template names.
185
- #html_additional_pages = {}
186
+ # html_additional_pages = {}
186
187
187
188
# If false, no module index is generated.
188
- #html_domain_indices = True
189
+ # html_domain_indices = True
189
190
190
191
# If false, no index is generated.
191
- #html_use_index = True
192
+ # html_use_index = True
192
193
193
194
# If true, the index is split into individual pages for each letter.
194
- #html_split_index = False
195
+ # html_split_index = False
195
196
196
197
# If true, links to the reST sources are added to the pages.
197
- #html_show_sourcelink = True
198
+ # html_show_sourcelink = True
198
199
199
200
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
200
- #html_show_sphinx = True
201
+ # html_show_sphinx = True
201
202
202
203
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
203
- #html_show_copyright = True
204
+ # html_show_copyright = True
204
205
205
206
# If true, an OpenSearch description file will be output, and all pages will
206
207
# contain a <link> tag referring to it. The value of this option must be the
207
208
# base URL from which the finished HTML is served.
208
- #html_use_opensearch = ''
209
+ # html_use_opensearch = ''
209
210
210
211
# This is the file name suffix for HTML files (e.g. ".xhtml").
211
- #html_file_suffix = None
212
+ # html_file_suffix = None
212
213
213
214
# Language to be used for generating the HTML full-text search index.
214
215
# Sphinx supports the following languages:
215
216
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
216
217
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
217
- #html_search_language = 'en'
218
+ # html_search_language = 'en'
218
219
219
220
# A dictionary with options for the search language support, empty by default.
220
221
# 'ja' uses this config value.
221
222
# 'zh' user can custom change `jieba` dictionary path.
222
- #html_search_options = {'type': 'default'}
223
+ # html_search_options = {'type': 'default'}
223
224
224
225
# The name of a javascript file (relative to the configuration directory) that
225
226
# implements a search results scorer. If empty, the default will be used.
226
- #html_search_scorer = 'scorer.js'
227
+ # html_search_scorer = 'scorer.js'
227
228
228
229
# Output file base name for HTML help builder.
229
230
htmlhelp_basename = 'numcodecsdoc'
230
231
231
232
# -- Options for LaTeX output ---------------------------------------------
232
233
233
234
latex_elements = {
234
- # The paper size ('letterpaper' or 'a4paper').
235
- #'papersize': 'letterpaper',
236
-
237
- # The font size ('10pt', '11pt' or '12pt').
238
- #'pointsize': '10pt',
239
-
240
- # Additional stuff for the LaTeX preamble.
241
- #'preamble': '',
242
-
243
- # Latex figure (float) alignment
244
- #'figure_align': 'htbp',
235
+ # The paper size ('letterpaper' or 'a4paper').
236
+ #'papersize': 'letterpaper',
237
+ # The font size ('10pt', '11pt' or '12pt').
238
+ #'pointsize': '10pt',
239
+ # Additional stuff for the LaTeX preamble.
240
+ #'preamble': '',
241
+ # Latex figure (float) alignment
242
+ #'figure_align': 'htbp',
245
243
}
246
244
247
245
# Grouping the document tree into LaTeX files. List of tuples
248
246
# (source start file, target name, title,
249
247
# author, documentclass [howto, manual, or own class]).
250
248
latex_documents = [
251
- (main_doc , 'numcodecs.tex' , 'numcodecs Documentation' ,
252
- 'Alistair Miles' , 'manual' ),
249
+ (main_doc , 'numcodecs.tex' , 'numcodecs Documentation' , 'Alistair Miles' , 'manual' ),
253
250
]
254
251
255
252
# The name of an image file (relative to this directory) to place at the top of
256
253
# the title page.
257
- #latex_logo = None
254
+ # latex_logo = None
258
255
259
256
# For "manual" documents, if this is true, then toplevel headings are parts,
260
257
# not chapters.
261
- #latex_use_parts = False
258
+ # latex_use_parts = False
262
259
263
260
# If true, show page references after internal links.
264
- #latex_show_pagerefs = False
261
+ # latex_show_pagerefs = False
265
262
266
263
# If true, show URL addresses after external links.
267
- #latex_show_urls = False
264
+ # latex_show_urls = False
268
265
269
266
# Documents to append as an appendix to all manuals.
270
- #latex_appendices = []
267
+ # latex_appendices = []
271
268
272
269
# If false, no module index is generated.
273
- #latex_domain_indices = True
270
+ # latex_domain_indices = True
274
271
275
272
276
273
# -- Options for manual page output ---------------------------------------
277
274
278
275
# One entry per manual page. List of tuples
279
276
# (source start file, name, description, authors, manual section).
280
- man_pages = [
281
- (main_doc , 'numcodecs' , 'numcodecs Documentation' ,
282
- [author ], 1 )
283
- ]
277
+ man_pages = [(main_doc , 'numcodecs' , 'numcodecs Documentation' , [author ], 1 )]
284
278
285
279
# If true, show URL addresses after external links.
286
- #man_show_urls = False
280
+ # man_show_urls = False
287
281
288
282
289
283
# -- Options for Texinfo output -------------------------------------------
@@ -292,22 +286,28 @@ def __getattr__(cls, name):
292
286
# (source start file, target name, title, author,
293
287
# dir menu entry, description, category)
294
288
texinfo_documents = [
295
- (main_doc , 'numcodecs' , 'numcodecs Documentation' ,
296
- author , 'numcodecs' , 'One line description of project.' ,
297
- 'Miscellaneous' ),
289
+ (
290
+ main_doc ,
291
+ 'numcodecs' ,
292
+ 'numcodecs Documentation' ,
293
+ author ,
294
+ 'numcodecs' ,
295
+ 'One line description of project.' ,
296
+ 'Miscellaneous' ,
297
+ ),
298
298
]
299
299
300
300
# Documents to append as an appendix to all manuals.
301
- #texinfo_appendices = []
301
+ # texinfo_appendices = []
302
302
303
303
# If false, no module index is generated.
304
- #texinfo_domain_indices = True
304
+ # texinfo_domain_indices = True
305
305
306
306
# How to display URL addresses: 'footnote', 'no', or 'inline'.
307
- #texinfo_show_urls = 'footnote'
307
+ # texinfo_show_urls = 'footnote'
308
308
309
309
# If true, do not generate a @detailmenu in the "Top" node's menu.
310
- #texinfo_no_detailmenu = False
310
+ # texinfo_no_detailmenu = False
311
311
312
312
313
313
# Example configuration for intersphinx: refer to the Python standard library.
0 commit comments