Debian Codegraph @

docs/conf.py

raw symbols ◀ ▶ SCIP
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 mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
81
82 # Add any paths that contain templates here, relative to this directory.
83 templates_path = ['_templates']
84
85 # The suffix of source filenames.
86 source_suffix = '.rst'
87
88 # The encoding of source files.
89 # source_encoding = 'utf-8-sig'
90
91 # The master toctree document.
92 master_doc = 'index'
93
94 # General information about the project.
95 project = projectname
96 copyright = year+", "+author
97
98 # The version info for the project you're documenting, acts as replacement for
99 # |version| and |release|, also used in various other places throughout the
100 # built documents.
101 #
102 # The short X.Y version.
103 # The full version, including alpha/beta/rc tags.
104 # release = version
105
106 # The language for content autogenerated by Sphinx. Refer to documentation
107 # for a list of supported languages.
108 # language = None
109
110 # There are two options for replacing |today|: either, you set today to some
111 # non-false value, then it is used:
112 # today = ''
113 # Else, today_fmt is used as the format for a strftime call.
114 # today_fmt = '%B %d, %Y'
115
116 # List of patterns, relative to source directory, that match files and
117 # directories to ignore when looking for source files.
118
119 # The reST default role (used for this markup: `text`) to use for all
120 # documents.
121 # default_role = None
122
123 # If true, '()' will be appended to :func: etc. cross-reference text.
124 # add_function_parentheses = True
125
126 # If true, the current module name will be prepended to all description
127 # unit titles (such as .. function::).
128 # add_module_names = True
129
130 # If true, sectionauthor and moduleauthor directives will be shown in the
131 # output. They are ignored by default.
132 # show_authors = False
133
134 # The name of the Pygments (syntax highlighting) style to use.
135 # pygments_style = 'default'
136
137 # A list of ignored prefixes for module index sorting.
138 # modindex_common_prefix = []
139
140 # If true, keep warnings as "system message" paragraphs in the built documents.
141 # keep_warnings = False
142
143
144 # -- Options for HTML output ----------------------------------------------
145
146 # The theme to use for HTML and HTML Help pages. See the documentation for
147 # a list of builtin themes.
148 html_theme = 'sphinx_rtd_theme'
149
150 # Add any paths that contain custom themes here, relative to this directory.
151 # html_theme_path = []
152
153 # The name for this set of Sphinx documents. If None, it defaults to
154 # "<project> v<release> documentation".
155 # html_title = None
156
157 # A shorter title for the navigation bar. Default is the same as html_title.
158 # html_short_title = None
159
160 # The name of an image file (relative to this directory) to place at the top
161 # of the sidebar.
162 # html_logo = None
163
164 # The name of an image file (within the static path) to use as favicon of the
165 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
166 # pixels large.
167 # html_favicon = None
168
169 # Add any paths that contain custom static files (such as style sheets) here,
170 # relative to this directory. They are copied after the builtin static files,
171 # so a file named "default.css" will overwrite the builtin "default.css".
172 # html_static_path = ['_static']
173
174 # Add any extra paths that contain custom files (such as robots.txt or
175 # .htaccess) here, relative to this directory. These files are copied
176 # directly to the root of the documentation.
177 # html_extra_path = []
178
179 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
180 # using the given strftime format.
181 # html_last_updated_fmt = '%b %d, %Y'
182
183 # If true, SmartyPants will be used to convert quotes and dashes to
184 # typographically correct entities.
185 # html_use_smartypants = True
186
187 # Custom sidebar templates, maps document names to template names.
188 # html_sidebars = {}
189
190 # Additional templates that should be rendered to pages, maps page names to
191 # template names.
192 # html_additional_pages = {}
193
194 # If false, no module index is generated.
195 # html_domain_indices = True
196
197 # If false, no index is generated.
198 # html_use_index = True
199
200 # If true, the index is split into individual pages for each letter.
201 # html_split_index = False
202
203 # If true, links to the reST sources are added to the pages.
204 # html_show_sourcelink = True
205
206 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
207 # html_show_sphinx = True
208
209 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
210 # html_show_copyright = True
211
212 # If true, an OpenSearch description file will be output, and all pages will
213 # contain a <link> tag referring to it. The value of this option must be the
214 # base URL from which the finished HTML is served.
215 # html_use_opensearch = ''
216
217 # This is the file name suffix for HTML files (e.g. ".xhtml").
218 # html_file_suffix = None
219
220 # Output file base name for HTML help builder.
221 htmlhelp_basename = projectname+'doc'
222
223
224 # -- Options for LaTeX output ---------------------------------------------
225
226 latex_elements = {
227 # The paper size ('letterpaper' or 'a4paper').
228 # 'papersize': 'letterpaper',
229
230 # The font size ('10pt', '11pt' or '12pt').
231 # 'pointsize': '10pt',
232
233 # Additional stuff for the LaTeX preamble.
234 # 'preamble': '',
235 }
236
237 # Grouping the document tree into LaTeX files. List of tuples
238 # (source start file, target name, title,
239 # author, documentclass [howto, manual, or own class]).
240 latex_documents = [
241 ('index', projectname+'.tex', projectname+' Documentation',
242 author, 'manual'),
243 ]
244
245 # The name of an image file (relative to this directory) to place at the top of
246 # the title page.
247 # latex_logo = None
248
249 # For "manual" documents, if this is true, then toplevel headings are parts,
250 # not chapters.
251 # latex_use_parts = False
252
253 # If true, show page references after internal links.
254 # latex_show_pagerefs = False
255
256 # If true, show URL addresses after external links.
257 # latex_show_urls = False
258
259 # Documents to append as an appendix to all manuals.
260 # latex_appendices = []
261
262 # If false, no module index is generated.
263 # latex_domain_indices = True
264
265
266 # -- Options for manual page output ---------------------------------------
267
268 # One entry per manual page. List of tuples
269 # (source start file, name, description, authors, manual section).
270 man_pages = [
271 ('index', projectname, projectname+' Documentation',
272 authors, 1)
273 ]
274
275 # If true, show URL addresses after external links.
276 # man_show_urls = False
277
278
279 # -- Options for Texinfo output -------------------------------------------
280
281 # Grouping the document tree into Texinfo files. List of tuples
282 # (source start file, target name, title, author,
283 # dir menu entry, description, category)
284 texinfo_documents = [
285 ('index', projectname, projectname+' Documentation',
286 author, projectname,
287 projectdescription,
288 'Numeric'),
289 ]
290
291 # Documents to append as an appendix to all manuals.
292 # texinfo_appendices = []
293
294 # If false, no module index is generated.
295 # texinfo_domain_indices = True
296
297 # How to display URL addresses: 'footnote', 'no', or 'inline'.
298 # texinfo_show_urls = 'footnote'
299
300 # If true, do not generate a @detailmenu in the "Top" node's menu.
301 # texinfo_no_detailmenu = False
302
303 # -----------------------------------------------------------------------------
304 # intersphinx
305 # -----------------------------------------------------------------------------
306 intersphinx_mapping = {"python": ('https://docs.python.org/', None),
307 "numpy": ('http://docs.scipy.org/doc/numpy', None),
308 }