Debian Codegraph @

doc/source/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # PyWavelets documentation build configuration file, created by
4 # sphinx-quickstart on Sun Mar 14 10:46:18 2010.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13
14 import re
15 import datetime
16 import jinja2.filters
17
18 import numpy as np
19
20 # FIXME: doctests need the str/repr formatting used in Numpy < 1.14.
21 try:
22 np.set_printoptions(legacy='1.13')
23 except TypeError:
24 pass
25
26
27 # If extensions (or modules to document with autodoc) are in another directory,
28 # add these directories to sys.path here. If the directory is relative to the
29 # documentation root, use os.path.abspath to make it absolute, like shown here.
30 #sys.path.append(os.path.abspath('.'))
31
32 # -- General configuration -----------------------------------------------------
33
34 # Add any Sphinx extension module names here, as strings. They can be extensions
35 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
36 extensions = ['sphinx.ext.doctest', 'sphinx.ext.autodoc', 'sphinx.ext.todo',
37 'sphinx.ext.extlinks', 'sphinx.ext.mathjax',
38 'sphinx.ext.autosummary', 'numpydoc',
39 'sphinx.ext.intersphinx',
40 'matplotlib.sphinxext.plot_directive']
41
42 # Add any paths that contain templates here, relative to this directory.
43 templates_path = ['_templates']
44
45 # The suffix of source filenames.
46 source_suffix = '.rst'
47
48 # The encoding of source files.
49 #source_encoding = 'utf-8'
50
51 # The master toctree document.
52 master_doc = 'index'
53
54 # General information about the project.
55 project = 'PyWavelets'
56 copyright = '2006-%s, The PyWavelets Developers' % datetime.date.today().year
57
58 # The version info for the project you're documenting, acts as replacement for
59 # |version| and |release|, also used in various other places throughout the
60 # built documents.
61
62 # The default replacements for |version| and |release|, also used in various
63 # other places throughout the built documents.
64 import pywt
65 version = re.sub(r'\.dev0+.*$', r'.dev', pywt.__version__)
66 release = pywt.__version__
67
68 print("PyWavelets (VERSION %s)" % (version,))
69
70 # The language for content autogenerated by Sphinx. Refer to documentation
71 # for a list of supported languages.
72 #language = None
73
74 # There are two options for replacing |today|: either, you set today to some
75 # non-false value, then it is used:
76 #today = ''
77 # Else, today_fmt is used as the format for a strftime call.
78 #today_fmt = '%B %d, %Y'
79
80 # List of documents that shouldn't be included in the build.
81 unused_docs = ['substitutions', ]
82
83 # List of directories, relative to source directory, that shouldn't be searched
84 # for source files.
85 exclude_trees = ['_build']
86
87 # The reST default role (used for this markup: `text`) to use for all documents.
88 #default_role = None
89
90 # If true, '()' will be appended to :func: etc. cross-reference text.
91 #add_function_parentheses = True
92
93 # If true, the current module name will be prepended to all description
94 # unit titles (such as .. function::).
95 #add_module_names = True
96
97 # If true, sectionauthor and moduleauthor directives will be shown in the
98 # output. They are ignored by default.
99 #show_authors = False
100
101 # The name of the Pygments (syntax highlighting) style to use.
102 pygments_style = 'sphinx'
103
104 # A list of ignored prefixes for module index sorting.
105 modindex_common_prefix = ['pywt.']
106
107 # -- Options for HTML output ---------------------------------------------------
108
109 # The theme to use for HTML and HTML Help pages. Major themes that come with
110 # Sphinx are currently 'default' and 'sphinxdoc'.
111 html_theme = 'nature'
112
113 # Theme options are theme-specific and customize the look and feel of a theme
114 # further. For a list of options available for each theme, see the
115 # documentation.
116 #html_theme_options = {}
117
118 # Add any paths that contain custom themes here, relative to this directory.
119 #html_theme_path = []
120
121 # The name for this set of Sphinx documents. If None, it defaults to
122 # "<project> v<release> documentation".
123 html_title = 'PyWavelets Documentation'
124
125 # A shorter title for the navigation bar. Default is the same as html_title.
126 #html_short_title = None
127
128 # The name of an image file (relative to this directory) to place at the top
129 # of the sidebar.
130 #html_logo = None
131
132 # The name of an image file (within the static path) to use as favicon of the
133 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
134 # pixels large.
135 html_favicon = '_static/favicon.ico'
136
137 # Add any paths that contain custom static files (such as style sheets) here,
138 # relative to this directory. They are copied after the builtin static files,
139 # so a file named "default.css" will overwrite the builtin "default.css".
140 html_static_path = ['_static']
141
142 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143 # using the given strftime format.
144 html_last_updated_fmt = '%b %d, %Y'
145
146 # If true, SmartyPants will be used to convert quotes and dashes to
147 # typographically correct entities.
148 #html_use_smartypants = True
149
150 # Custom sidebar templates, maps document names to template names.
151 #html_sidebars = {}
152 html_sidebars = {
153 '**': ['localtoc.html', "relations.html", 'quicklinks.html', 'searchbox.html', 'editdocument.html'],
154 }
155
156 # Additional templates that should be rendered to pages, maps page names to
157 # template names.
158 #html_additional_pages = {}
159
160 # If false, no module index is generated.
161 #html_use_modindex = True
162
163 # If false, no index is generated.
164 #html_use_index = True
165
166 # If true, the index is split into individual pages for each letter.
167 #html_split_index = False
168
169 # If true, links to the reST sources are added to the pages.
170 html_show_sourcelink = False
171
172 # 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
174 # base URL from which the finished HTML is served.
175 html_use_opensearch = 'http://pywavelets.readthedocs.org'
176
177 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
178 #html_file_suffix = ''
179
180 # Output file base name for HTML help builder.
181 htmlhelp_basename = 'PyWaveletsdoc'
182
183
184 # -- Options for LaTeX output --------------------------------------------------
185
186 # The paper size ('letter' or 'a4').
187 #latex_paper_size = 'letter'
188
189 # The font size ('10pt', '11pt' or '12pt').
190 #latex_font_size = '10pt'
191
192 # Grouping the document tree into LaTeX files. List of tuples
193 # (source start file, target name, title, author, documentclass [howto/manual]).
194 latex_documents = [
195 ('index', 'PyWavelets.tex', 'PyWavelets Documentation',
196 'The PyWavelets Developers', 'manual'),
197 ]
198
199 # The name of an image file (relative to this directory) to place at the top of
200 # the title page.
201 #latex_logo = None
202
203 # For "manual" documents, if this is true, then toplevel headings are parts,
204 # not chapters.
205 #latex_use_parts = False
206
207 # Additional stuff for the LaTeX preamble.
208 #latex_preamble = ''
209
210 # Documents to append as an appendix to all manuals.
211 #latex_appendices = []
212
213 # If false, no module index is generated.
214 #latex_use_modindex = True
215
216 # List of patterns, relative to source directory, that match files and
217 # directories to ignore when looking for source files.
218 exclude_patterns = ['substitutions.rst', ]
219
220 # numpydoc_show_class_members = False
221 numpydoc_class_members_toctree = False
222
223 # plot_directive options
224 plot_include_source = True
225 plot_formats = [('png', 96), 'pdf']
226 plot_html_show_formats = False
227 plot_html_show_source_link = False
228
229 # -- Options for intersphinx extension ---------------------------------------
230
231 # Intersphinx to get Numpy and other targets
232 intersphinx_mapping = {
233 'numpy': ('https://numpy.org/devdocs', None)}