Debian Codegraph @

doc/source/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 1 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
65 # On Debian we want to build docs at package build time, when pywt is not
66 # installed.
67 import os
68 base_path = os.path.dirname(__file__)
69 fp = open(os.path.abspath(os.path.join(base_path, '..', '..', 'pywt', 'version.py')))
70 VERSION = re.compile(r".*full_version = '(.*?)'",
71 re.S).match(fp.read()).group(1)
72 version = re.sub(r'\.dev0+.*$', r'.dev', VERSION)
73 release = VERSION
74
75 print("PyWavelets (VERSION %s)" % (version,))
76
77 # The language for content autogenerated by Sphinx. Refer to documentation
78 # for a list of supported languages.
79 #language = None
80
81 # There are two options for replacing |today|: either, you set today to some
82 # non-false value, then it is used:
83 #today = ''
84 # Else, today_fmt is used as the format for a strftime call.
85 #today_fmt = '%B %d, %Y'
86
87 # List of documents that shouldn't be included in the build.
88 unused_docs = ['substitutions', ]
89
90 # List of directories, relative to source directory, that shouldn't be searched
91 # for source files.
92 exclude_trees = ['_build']
93
94 # The reST default role (used for this markup: `text`) to use for all documents.
95 #default_role = None
96
97 # If true, '()' will be appended to :func: etc. cross-reference text.
98 #add_function_parentheses = True
99
100 # If true, the current module name will be prepended to all description
101 # unit titles (such as .. function::).
102 #add_module_names = True
103
104 # If true, sectionauthor and moduleauthor directives will be shown in the
105 # output. They are ignored by default.
106 #show_authors = False
107
108 # The name of the Pygments (syntax highlighting) style to use.
109 pygments_style = 'sphinx'
110
111 # A list of ignored prefixes for module index sorting.
112 modindex_common_prefix = ['pywt.']
113
114 # -- Options for HTML output ---------------------------------------------------
115
116 # The theme to use for HTML and HTML Help pages. Major themes that come with
117 # Sphinx are currently 'default' and 'sphinxdoc'.
118 html_theme = 'nature'
119
120 # Theme options are theme-specific and customize the look and feel of a theme
121 # further. For a list of options available for each theme, see the
122 # documentation.
123 #html_theme_options = {}
124
125 # Add any paths that contain custom themes here, relative to this directory.
126 #html_theme_path = []
127
128 # The name for this set of Sphinx documents. If None, it defaults to
129 # "<project> v<release> documentation".
130 html_title = 'PyWavelets Documentation'
131
132 # A shorter title for the navigation bar. Default is the same as html_title.
133 #html_short_title = None
134
135 # The name of an image file (relative to this directory) to place at the top
136 # of the sidebar.
137 #html_logo = None
138
139 # The name of an image file (within the static path) to use as favicon of the
140 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
141 # pixels large.
142 html_favicon = '_static/favicon.ico'
143
144 # 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,
146 # so a file named "default.css" will overwrite the builtin "default.css".
147 html_static_path = ['_static']
148
149 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
150 # using the given strftime format.
151 html_last_updated_fmt = '%b %d, %Y'
152
153 # If true, SmartyPants will be used to convert quotes and dashes to
154 # typographically correct entities.
155 #html_use_smartypants = True
156
157 # Custom sidebar templates, maps document names to template names.
158 #html_sidebars = {}
159 html_sidebars = {
160 '**': ['localtoc.html', "relations.html", 'quicklinks.html', 'searchbox.html', 'editdocument.html'],
161 }
162
163 # Additional templates that should be rendered to pages, maps page names to
164 # template names.
165 #html_additional_pages = {}
166
167 # If false, no module index is generated.
168 #html_use_modindex = True
169
170 # If false, no index is generated.
171 #html_use_index = True
172
173 # If true, the index is split into individual pages for each letter.
174 #html_split_index = False
175
176 # If true, links to the reST sources are added to the pages.
177 html_show_sourcelink = False
178
179 # If true, an OpenSearch description file will be output, and all pages will
180 # contain a <link> tag referring to it. The value of this option must be the
181 # base URL from which the finished HTML is served.
182 html_use_opensearch = 'http://pywavelets.readthedocs.org'
183
184 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
185 #html_file_suffix = ''
186
187 # Output file base name for HTML help builder.
188 htmlhelp_basename = 'PyWaveletsdoc'
189
190
191 # -- Options for LaTeX output --------------------------------------------------
192
193 # The paper size ('letter' or 'a4').
194 #latex_paper_size = 'letter'
195
196 # The font size ('10pt', '11pt' or '12pt').
197 #latex_font_size = '10pt'
198
199 # Grouping the document tree into LaTeX files. List of tuples
200 # (source start file, target name, title, author, documentclass [howto/manual]).
201 latex_documents = [
202 ('index', 'PyWavelets.tex', 'PyWavelets Documentation',
203 'The PyWavelets Developers', 'manual'),
204 ]
205
206 # The name of an image file (relative to this directory) to place at the top of
207 # the title page.
208 #latex_logo = None
209
210 # For "manual" documents, if this is true, then toplevel headings are parts,
211 # not chapters.
212 #latex_use_parts = False
213
214 # Additional stuff for the LaTeX preamble.
215 #latex_preamble = ''
216
217 # Documents to append as an appendix to all manuals.
218 #latex_appendices = []
219
220 # If false, no module index is generated.
221 #latex_use_modindex = True
222
223 # List of patterns, relative to source directory, that match files and
224 # directories to ignore when looking for source files.
225 exclude_patterns = ['substitutions.rst', ]
226
227 # numpydoc_show_class_members = False
228 numpydoc_class_members_toctree = False
229
230 # plot_directive options
231 plot_include_source = True
232 plot_formats = [('png', 96), 'pdf']
233 plot_html_show_formats = False
234 plot_html_show_source_link = False
235
236 # -- Options for intersphinx extension ---------------------------------------
237
238 # Intersphinx to get Numpy and other targets
239 intersphinx_mapping = {
240 'numpy': ('https://numpy.org/devdocs', None)}