Debian Codegraph @

docs/conf.py

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 #
4 # project documentation build configuration file, created by
5 # sphinx-quickstart on Sat Feb 22 09:35:49 2014.
6 #
7 # This file is execfile()d with the current directory set to its
8 # containing dir.
9 #
10 # Note that not all possible configuration values are present in this
11 # autogenerated file.
12 #
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
15
16 # If extensions (or modules to document with autodoc) are in another directory,
17 # add these directories to sys.path here. If the directory is relative to the
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
19
20 import os.path as op
21 import sys
22 from unittest import mock
23
24 import multipletau
25
26
27 # include parent directory
28 pdir = op.dirname(op.dirname(op.abspath(__file__)))
29 sys.path.insert(0, pdir)
30 # include extenstions
31 sys.path.append(op.abspath('extensions'))
32
33 # Mock all dependencies
34 install_requires = ["numpy"]
35
36 for mod_name in install_requires:
37 sys.modules[mod_name] = mock.Mock()
38
39 name = 'multipletau'
40 github_project = 'FCS-analysis/' + name
41 year = "2012"
42 author = 'Paul Müller'
43 authors = [author]
44 description = 'A multiple-tau algorithm for Python/NumPy'
45 projectname = name
46 projectdescription = description
47
48
49 release = multipletau.__version__
50
51 # http://www.sphinx-doc.org/en/stable/ext/autodoc.html#confval-autodoc_member_order
52 # Order class attributes and functions in separate blocks
53 autodoc_member_order = 'bysource'
54 autodoc_mock_imports = install_requires
55
56 # Display link to GitHub repo instead of doc on rtfd
57 rst_prolog = """
58 :github_url: https://github.com/FCS-analysis/multipletau
59 """
60
61 # -- General configuration ------------------------------------------------
62
63 # If your documentation needs a minimal Sphinx version, state it here.
64 # needs_sphinx = '1.0'
65
66 # Add any Sphinx extension module names here, as strings. They can be
67 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
68 # ones.
69
70 extensions = ['sphinx.ext.intersphinx',
71 'sphinx.ext.autosummary',
72 'sphinx.ext.autodoc',
73 'sphinx.ext.mathjax',
74 'sphinx.ext.viewcode',
75 'sphinx.ext.napoleon',
76 'fancy_include',
77 'github_changelog',
78 ]
79
80
81 # Add any paths that contain templates here, relative to this directory.
82 templates_path = ['_templates']
83
84 # The suffix of source filenames.
85 source_suffix = '.rst'
86
87 # The encoding of source files.
88 # source_encoding = 'utf-8-sig'
89
90 # The master toctree document.
91 master_doc = 'index'
92
93 # General information about the project.
94 project = projectname
95 copyright = year+", "+author
96
97 # The version info for the project you're documenting, acts as replacement for
98 # |version| and |release|, also used in various other places throughout the
99 # built documents.
100 #
101 # The short X.Y version.
102 # The full version, including alpha/beta/rc tags.
103 # release = version
104
105 # The language for content autogenerated by Sphinx. Refer to documentation
106 # for a list of supported languages.
107 # language = None
108
109 # There are two options for replacing |today|: either, you set today to some
110 # non-false value, then it is used:
111 # today = ''
112 # Else, today_fmt is used as the format for a strftime call.
113 # today_fmt = '%B %d, %Y'
114
115 # List of patterns, relative to source directory, that match files and
116 # directories to ignore when looking for source files.
117
118 # The reST default role (used for this markup: `text`) to use for all
119 # documents.
120 # default_role = None
121
122 # If true, '()' will be appended to :func: etc. cross-reference text.
123 # add_function_parentheses = True
124
125 # If true, the current module name will be prepended to all description
126 # unit titles (such as .. function::).
127 # add_module_names = True
128
129 # If true, sectionauthor and moduleauthor directives will be shown in the
130 # output. They are ignored by default.
131 # show_authors = False
132
133 # The name of the Pygments (syntax highlighting) style to use.
134 # pygments_style = 'default'
135
136 # A list of ignored prefixes for module index sorting.
137 # modindex_common_prefix = []
138
139 # If true, keep warnings as "system message" paragraphs in the built documents.
140 # keep_warnings = False
141
142
143 # -- Options for HTML output ----------------------------------------------
144
145 # The theme to use for HTML and HTML Help pages. See the documentation for
146 # a list of builtin themes.
147 html_theme = 'sphinx_rtd_theme'
148
149 # Add any paths that contain custom themes here, relative to this directory.
150 # html_theme_path = []
151
152 # The name for this set of Sphinx documents. If None, it defaults to
153 # "<project> v<release> documentation".
154 # html_title = None
155
156 # A shorter title for the navigation bar. Default is the same as html_title.
157 # html_short_title = None
158
159 # The name of an image file (relative to this directory) to place at the top
160 # of the sidebar.
161 # html_logo = None
162
163 # The name of an image file (within the static path) to use as favicon of the
164 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
165 # pixels large.
166 # html_favicon = None
167
168 # Add any paths that contain custom static files (such as style sheets) here,
169 # relative to this directory. They are copied after the builtin static files,
170 # so a file named "default.css" will overwrite the builtin "default.css".
171 # html_static_path = ['_static']
172
173 # Add any extra paths that contain custom files (such as robots.txt or
174 # .htaccess) here, relative to this directory. These files are copied
175 # directly to the root of the documentation.
176 # html_extra_path = []
177
178 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
179 # using the given strftime format.
180 # html_last_updated_fmt = '%b %d, %Y'
181
182 # If true, SmartyPants will be used to convert quotes and dashes to
183 # typographically correct entities.
184 # html_use_smartypants = True
185
186 # Custom sidebar templates, maps document names to template names.
187 # html_sidebars = {}
188
189 # Additional templates that should be rendered to pages, maps page names to
190 # template names.
191 # html_additional_pages = {}
192
193 # If false, no module index is generated.
194 # html_domain_indices = True
195
196 # If false, no index is generated.
197 # html_use_index = True
198
199 # If true, the index is split into individual pages for each letter.
200 # html_split_index = False
201
202 # If true, links to the reST sources are added to the pages.
203 # html_show_sourcelink = True
204
205 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
206 # html_show_sphinx = True
207
208 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
209 # html_show_copyright = True
210
211 # If true, an OpenSearch description file will be output, and all pages will
212 # contain a <link> tag referring to it. The value of this option must be the
213 # base URL from which the finished HTML is served.
214 # html_use_opensearch = ''
215
216 # This is the file name suffix for HTML files (e.g. ".xhtml").
217 # html_file_suffix = None
218
219 # Output file base name for HTML help builder.
220 htmlhelp_basename = projectname+'doc'
221
222
223 # -- Options for LaTeX output ---------------------------------------------
224
225 latex_elements = {
226 # The paper size ('letterpaper' or 'a4paper').
227 # 'papersize': 'letterpaper',
228
229 # The font size ('10pt', '11pt' or '12pt').
230 # 'pointsize': '10pt',
231
232 # Additional stuff for the LaTeX preamble.
233 # 'preamble': '',
234 }
235
236 # Grouping the document tree into LaTeX files. List of tuples
237 # (source start file, target name, title,
238 # author, documentclass [howto, manual, or own class]).
239 latex_documents = [
240 ('index', projectname+'.tex', projectname+' Documentation',
241 author, 'manual'),
242 ]
243
244 # The name of an image file (relative to this directory) to place at the top of
245 # the title page.
246 # latex_logo = None
247
248 # For "manual" documents, if this is true, then toplevel headings are parts,
249 # not chapters.
250 # latex_use_parts = False
251
252 # If true, show page references after internal links.
253 # latex_show_pagerefs = False
254
255 # If true, show URL addresses after external links.
256 # latex_show_urls = False
257
258 # Documents to append as an appendix to all manuals.
259 # latex_appendices = []
260
261 # If false, no module index is generated.
262 # latex_domain_indices = True
263
264
265 # -- Options for manual page output ---------------------------------------
266
267 # One entry per manual page. List of tuples
268 # (source start file, name, description, authors, manual section).
269 man_pages = [
270 ('index', projectname, projectname+' Documentation',
271 authors, 1)
272 ]
273
274 # If true, show URL addresses after external links.
275 # man_show_urls = False
276
277
278 # -- Options for Texinfo output -------------------------------------------
279
280 # Grouping the document tree into Texinfo files. List of tuples
281 # (source start file, target name, title, author,
282 # dir menu entry, description, category)
283 texinfo_documents = [
284 ('index', projectname, projectname+' Documentation',
285 author, projectname,
286 projectdescription,
287 'Numeric'),
288 ]
289
290 # Documents to append as an appendix to all manuals.
291 # texinfo_appendices = []
292
293 # If false, no module index is generated.
294 # texinfo_domain_indices = True
295
296 # How to display URL addresses: 'footnote', 'no', or 'inline'.
297 # texinfo_show_urls = 'footnote'
298
299 # If true, do not generate a @detailmenu in the "Top" node's menu.
300 # texinfo_no_detailmenu = False
301
302 # -----------------------------------------------------------------------------
303 # intersphinx
304 # -----------------------------------------------------------------------------
305 intersphinx_mapping = {"python": ('https://docs.python.org/', None),
306 "numpy": ('http://docs.scipy.org/doc/numpy', None),
307 }