annotate doc/conf.py @ 383:c030134b7870

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