Debian Codegraph @

docs/source/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # TreeTime documentation build configuration file, created by
4 # sphinx-quickstart on Mon Jul 31 11:44:07 2017.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import sys
16 import os
17
18 # If extensions (or modules to document with autodoc) are in another directory,
19 # add these directories to sys.path here. If the directory is relative to the
20 # documentation root, use os.path.abspath to make it absolute, like shown here.
21 sys.path.insert(0, os.path.abspath('../..'))
22
23 from treetime import version
24
25 # -- General configuration ------------------------------------------------
26
27 # If your documentation needs a minimal Sphinx version, state it here.
28 # needs_sphinx = '1.0'
29
30 # Add any Sphinx extension module names here, as strings. They can be
31 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32 # ones.
33 extensions = [
34 'sphinx.ext.autodoc',
35 'sphinx.ext.doctest',
36 'sphinx.ext.todo',
37 'sphinx.ext.coverage',
38 'sphinx.ext.mathjax',
39 'sphinx.ext.viewcode',
40 'sphinx.ext.napoleon',
41 'recommonmark',
42 'sphinxarg.ext',
43 ]
44
45 # Napoleon settings
46 napoleon_google_docstring = False
47 napoleon_numpy_docstring = True
48 napoleon_include_init_with_doc = True
49 napoleon_include_private_with_doc = True
50 napoleon_include_special_with_doc = True
51 napoleon_use_admonition_for_examples = False
52 napoleon_use_admonition_for_notes = False
53 napoleon_use_admonition_for_references = False
54 napoleon_use_ivar = False
55 napoleon_use_param = True
56 napoleon_use_rtype = True
57
58
59 # Add any paths that contain templates here, relative to this directory.
60 templates_path = ['_templates']
61
62 # The suffix(es) of source filenames.
63 # You can specify multiple suffix as a list of string:
64 # source_suffix = ['.rst', '.md']
65 source_suffix = ['.rst', '.md']
66
67 # The encoding of source files.
68 # source_encoding = 'utf-8-sig'
69
70 # The master toctree document.
71 master_doc = 'index'
72
73 # General information about the project.
74 project = 'TreeTime'
75 copyright = '2017-2021, Pavel Sagulenko and Richard Neher'
76 author = 'Pavel Sagulenko and Richard Neher'
77
78 # The version info for the project you're documenting, acts as replacement for
79 # |version| and |release|, also used in various other places throughout the
80 # built documents.
81 #
82 # The full version, including alpha/beta/rc tags.
83 release = version
84
85 # The language for content autogenerated by Sphinx. Refer to documentation
86 # for a list of supported languages.
87 #
88 # This is also used if you do content translation via gettext catalogs.
89 # Usually you set "language" from the command line for these cases.
90 language = None
91
92 # There are two options for replacing |today|: either, you set today to some
93 # non-false value, then it is used:
94 # today = ''
95 # Else, today_fmt is used as the format for a strftime call.
96 # today_fmt = '%B %d, %Y'
97
98 # List of patterns, relative to source directory, that match files and
99 # directories to ignore when looking for source files.
100 # This patterns also effect to html_static_path and html_extra_path
101 exclude_patterns = []
102
103 # The reST default role (used for this markup: `text`) to use for all
104 # documents.
105 # default_role = None
106
107 # If true, '()' will be appended to :func: etc. cross-reference text.
108 # add_function_parentheses = True
109
110 # If true, the current module name will be prepended to all description
111 # unit titles (such as .. function::).
112 # add_module_names = True
113
114 # If true, sectionauthor and moduleauthor directives will be shown in the
115 # output. They are ignored by default.
116 # show_authors = False
117
118 # The name of the Pygments (syntax highlighting) style to use.
119 pygments_style = 'sphinx'
120
121 # A list of ignored prefixes for module index sorting.
122 # modindex_common_prefix = []
123
124 # If true, keep warnings as "system message" paragraphs in the built documents.
125 # keep_warnings = False
126
127 # If true, `todo` and `todoList` produce output, else they produce nothing.
128 todo_include_todos = True
129
130
131 # -- Options for HTML output ----------------------------------------------
132
133 # The theme to use for HTML and HTML Help pages. See the documentation for
134 # a list of builtin themes.
135 # html_theme = 'alabaster'
136
137 html_theme = 'sphinx_rtd_theme'
138
139 html_theme_options = {}
140 # Theme options are theme-specific and customize the look and feel of a theme
141 # further. For a list of options available for each theme, see the
142 # documentation.
143 # html_theme_options = {}
144
145 # Add any paths that contain custom themes here, relative to this directory.
146 # html_theme_path = []
147
148 # The name for this set of Sphinx documents.
149 # "<project> v<release> documentation" by default.
150 # html_title = u'TreeTime v1.0'
151
152 # A shorter title for the navigation bar. Default is the same as html_title.
153 # html_short_title = None
154
155 # The name of an image file (relative to this directory) to place at the top
156 # of the sidebar.
157 # html_logo = None
158
159 # The name of an image file (relative to this directory) to use as a favicon of
160 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
161 # pixels large.
162 # html_favicon = None
163
164 # Add any paths that contain custom static files (such as style sheets) here,
165 # relative to this directory. They are copied after the builtin static files,
166 # so a file named "default.css" will overwrite the builtin "default.css".
167 # html_static_path = ['_static']
168 html_static_path = []
169
170 # Add any extra paths that contain custom files (such as robots.txt or
171 # .htaccess) here, relative to this directory. These files are copied
172 # directly to the root of the documentation.
173 # html_extra_path = []
174
175 # If not None, a 'Last updated on:' timestamp is inserted at every page
176 # bottom, using the given strftime format.
177 # The empty string is equivalent to '%b %d, %Y'.
178 # html_last_updated_fmt = None
179
180 # If true, SmartyPants will be used to convert quotes and dashes to
181 # typographically correct entities.
182 # html_use_smartypants = True
183
184 # Custom sidebar templates, maps document names to template names.
185 # html_sidebars = {}
186
187 # Additional templates that should be rendered to pages, maps page names to
188 # template names.
189 # html_additional_pages = {}
190
191 # If false, no module index is generated.
192 # html_domain_indices = True
193
194 # If false, no index is generated.
195 # html_use_index = True
196
197 # If true, the index is split into individual pages for each letter.
198 # html_split_index = False
199
200 # If true, links to the reST sources are added to the pages.
201 # html_show_sourcelink = True
202
203 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
204 # html_show_sphinx = True
205
206 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
207 # html_show_copyright = True
208
209 # If true, an OpenSearch description file will be output, and all pages will
210 # contain a <link> tag referring to it. The value of this option must be the
211 # base URL from which the finished HTML is served.
212 # html_use_opensearch = ''
213
214 # This is the file name suffix for HTML files (e.g. ".xhtml").
215 # html_file_suffix = None
216
217 # Language to be used for generating the HTML full-text search index.
218 # Sphinx supports the following languages:
219 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
220 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
221 # html_search_language = 'en'
222
223 # A dictionary with options for the search language support, empty by default.
224 # 'ja' uses this config value.
225 # 'zh' user can custom change `jieba` dictionary path.
226 # html_search_options = {'type': 'default'}
227
228 # The name of a javascript file (relative to the configuration directory) that
229 # implements a search results scorer. If empty, the default will be used.
230 # html_search_scorer = 'scorer.js'
231
232 # Output file base name for HTML help builder.
233 htmlhelp_basename = 'TreeTimedoc'
234
235 # -- Options for LaTeX output ---------------------------------------------
236
237 latex_elements = {
238 # The paper size ('letterpaper' or 'a4paper').
239 #'papersize': 'letterpaper',
240 # The font size ('10pt', '11pt' or '12pt').
241 #'pointsize': '10pt',
242 # Additional stuff for the LaTeX preamble.
243 #'preamble': '',
244 # Latex figure (float) alignment
245 #'figure_align': 'htbp',
246 }
247
248 # Grouping the document tree into LaTeX files. List of tuples
249 # (source start file, target name, title,
250 # author, documentclass [howto, manual, or own class]).
251 latex_documents = [
252 (master_doc, 'TreeTime.tex', 'TreeTime Documentation', 'Pavel Sagulenko and Richard Neher', 'manual'),
253 ]
254
255 # The name of an image file (relative to this directory) to place at the top of
256 # the title page.
257 # latex_logo = None
258
259 # For "manual" documents, if this is true, then toplevel headings are parts,
260 # not chapters.
261 # latex_use_parts = False
262
263 # If true, show page references after internal links.
264 # latex_show_pagerefs = False
265
266 # If true, show URL addresses after external links.
267 # latex_show_urls = False
268
269 # Documents to append as an appendix to all manuals.
270 # latex_appendices = []
271
272 # If false, no module index is generated.
273 # latex_domain_indices = True
274
275
276 # -- Options for manual page output ---------------------------------------
277
278 # One entry per manual page. List of tuples
279 # (source start file, name, description, authors, manual section).
280 man_pages = [(master_doc, 'treetime', 'TreeTime Documentation', [author], 1)]
281
282 # If true, show URL addresses after external links.
283 # man_show_urls = False
284
285
286 # -- Options for Texinfo output -------------------------------------------
287
288 # Grouping the document tree into Texinfo files. List of tuples
289 # (source start file, target name, title, author,
290 # dir menu entry, description, category)
291 texinfo_documents = [
292 (
293 master_doc,
294 'TreeTime',
295 'TreeTime Documentation',
296 author,
297 'TreeTime',
298 'One line description of project.',
299 'Miscellaneous',
300 ),
301 ]
302
303 # Documents to append as an appendix to all manuals.
304 # texinfo_appendices = []
305
306 # If false, no module index is generated.
307 # texinfo_domain_indices = True
308
309 # How to display URL addresses: 'footnote', 'no', or 'inline'.
310 # texinfo_show_urls = 'footnote'
311
312 # If true, do not generate a @detailmenu in the "Top" node's menu.
313 # texinfo_no_detailmenu = False