3
# aiosignal documentation build configuration file, created by
4
# sphinx-quickstart on Wed Mar 5 12:35:35 2014.
6
# This file is execfile()d with the current directory set to its
9
# Note that not all possible configuration values are present in this
12
# All configuration values have a default; values that are commented out
13
# serve to show the default.
18
_docs_path = os.path.dirname(__file__)
19
_version_path = os.path.abspath(
20
os.path.join(_docs_path, "..", "aiosignal", "__init__.py")
22
with open(_version_path, encoding="latin1") as fp:
24
_version_info = re.search(
34
raise RuntimeError("Unable to determine version.")
37
# -- General configuration ------------------------------------------------
39
# If your documentation needs a minimal Sphinx version, state it here.
42
# Add any Sphinx extension module names here, as strings. They can be
43
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
46
"sphinx.ext.viewcode",
47
"sphinx.ext.intersphinx",
48
"sphinxcontrib.asyncio",
53
import sphinxcontrib.spelling # noqa
55
extensions.append("sphinxcontrib.spelling")
60
intersphinx_mapping = {
61
"python": ("http://docs.python.org/3", None),
62
"aiohttp": ("https://docs.aiohttp.org/en/stable/", None),
63
"frozenlist": ("https://frozenlist.readthedocs.io/en/latest/", None),
66
# Add any paths that contain templates here, relative to this directory.
67
templates_path = ["_templates"]
69
# The suffix of source filenames.
72
# The encoding of source files.
73
# source_encoding = 'utf-8-sig'
75
# The master toctree document.
78
# General information about the project.
80
copyright = "2013-2019, aiosignal contributors"
82
# The version info for the project you're documenting, acts as replacement for
83
# |version| and |release|, also used in various other places throughout the
86
# The short X.Y version.
87
version = "{major}.{minor}".format(**_version_info)
88
# The full version, including alpha/beta/rc tags.
89
release = "{major}.{minor}.{patch}{tag}".format(**_version_info)
91
# The language for content autogenerated by Sphinx. Refer to documentation
92
# for a list of supported languages.
95
# There are two options for replacing |today|: either, you set today to some
96
# non-false value, then it is used:
98
# Else, today_fmt is used as the format for a strftime call.
99
# today_fmt = '%B %d, %Y'
101
# List of patterns, relative to source directory, that match files and
102
# directories to ignore when looking for source files.
103
exclude_patterns = ["_build"]
105
# The reST default role (used for this markup: `text`) to use for all
109
# If true, '()' will be appended to :func: etc. cross-reference text.
110
# add_function_parentheses = True
112
# If true, the current module name will be prepended to all description
113
# unit titles (such as .. function::).
114
# add_module_names = True
116
# If true, sectionauthor and moduleauthor directives will be shown in the
117
# output. They are ignored by default.
118
# show_authors = False
120
# The name of the Pygments (syntax highlighting) style to use.
121
# pygments_style = 'sphinx'
123
# The default language to highlight source code in.
124
highlight_language = "python3"
126
# A list of ignored prefixes for module index sorting.
127
# modindex_common_prefix = []
129
# If true, keep warnings as "system message" paragraphs in the built documents.
130
# keep_warnings = False
133
# -- Options for HTML output ----------------------------------------------
135
# The theme to use for HTML and HTML Help pages. See the documentation for
136
# a list of builtin themes.
137
html_theme = "aiohttp_theme"
139
# Theme options are theme-specific and customize the look and feel of a theme
140
# further. For a list of options available for each theme, see the
142
html_theme_options = {
144
"description": "aiosignal: a list of registered asynchronous callbacks.",
145
"canonical_url": "http://aiosignal.readthedocs.io/en/stable/",
146
"github_user": "aio-libs",
147
"github_repo": "aiosignal",
148
"github_button": True,
149
"github_type": "star",
150
"github_banner": True,
153
"image": "https://github.com/aio-libs/aiosignal/workflows/CI/badge.svg",
155
"https://github.com/aio-libs/aiosignal/" "actions?query=workflow%3ACI"
158
"alt": "GitHub CI status for master branch",
162
"https://codecov.io/github/aio-libs/aiosignal/"
163
"coverage.svg?branch=master"
165
"target": "https://codecov.io/github/aio-libs/aiosignal",
167
"alt": "Code coverage status",
170
"image": "https://badge.fury.io/py/aiosignal.svg",
171
"target": "https://badge.fury.io/py/aiosignal",
173
"alt": "Latest PyPI package version",
177
"https://img.shields.io/discourse/"
178
"topics?server=https%3A%2F%2Faio-libs.discourse.group%2F"
180
"target": "https://aio-libs.discourse.group/",
182
"alt": "Discourse group for io-libs",
185
"image": "https://badges.gitter.im/Join%20Chat.svg",
186
"target": "https://gitter.im/aio-libs/Lobby",
188
"alt": "Chat on Gitter",
193
# Add any paths that contain custom themes here, relative to this directory.
194
# html_theme_path = [alabaster.get_path()]
196
# The name for this set of Sphinx documents. If None, it defaults to
197
# "<project> v<release> documentation".
200
# A shorter title for the navigation bar. Default is the same as html_title.
201
# html_short_title = None
203
# The name of an image file (relative to this directory) to place at the top
205
# html_logo = 'aiosignal-icon.svg'
207
# The name of an image file (within the static path) to use as favicon of the
208
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
210
# html_favicon = 'favicon.ico'
212
# Add any paths that contain custom static files (such as style sheets) here,
213
# relative to this directory. They are copied after the builtin static files,
214
# so a file named "default.css" will overwrite the builtin "default.css".
215
# html_static_path = []
217
# Add any extra paths that contain custom files (such as robots.txt or
218
# .htaccess) here, relative to this directory. These files are copied
219
# directly to the root of the documentation.
220
# html_extra_path = []
222
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
223
# using the given strftime format.
224
# html_last_updated_fmt = '%b %d, %Y'
226
# If true, SmartyPants will be used to convert quotes and dashes to
227
# typographically correct entities.
228
# html_use_smartypants = True
230
# Custom sidebar templates, maps document names to template names.
239
# Additional templates that should be rendered to pages, maps page names to
241
# html_additional_pages = {}
243
# If false, no module index is generated.
244
# html_domain_indices = True
246
# If false, no index is generated.
247
# html_use_index = True
249
# If true, the index is split into individual pages for each letter.
250
# html_split_index = False
252
# If true, links to the reST sources are added to the pages.
253
# html_show_sourcelink = True
255
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
256
# html_show_sphinx = True
258
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
259
# html_show_copyright = True
261
# If true, an OpenSearch description file will be output, and all pages will
262
# contain a <link> tag referring to it. The value of this option must be the
263
# base URL from which the finished HTML is served.
264
# html_use_opensearch = ''
266
# This is the file name suffix for HTML files (e.g. ".xhtml").
267
# html_file_suffix = None
269
# Output file base name for HTML help builder.
270
htmlhelp_basename = "aiosignaldoc"
273
# -- Options for LaTeX output ---------------------------------------------
276
# The paper size ('letterpaper' or 'a4paper').
277
# 'papersize': 'letterpaper',
278
# The font size ('10pt', '11pt' or '12pt').
279
# 'pointsize': '10pt',
280
# Additional stuff for the LaTeX preamble.
284
# Grouping the document tree into LaTeX files. List of tuples
285
# (source start file, target name, title,
286
# author, documentclass [howto, manual, or own class]).
291
"aiosignal Documentation",
292
"aiosignal contributors",
297
# The name of an image file (relative to this directory) to place at the top of
301
# For "manual" documents, if this is true, then toplevel headings are parts,
303
# latex_use_parts = False
305
# If true, show page references after internal links.
306
# latex_show_pagerefs = False
308
# If true, show URL addresses after external links.
309
# latex_show_urls = False
311
# Documents to append as an appendix to all manuals.
312
# latex_appendices = []
314
# If false, no module index is generated.
315
# latex_domain_indices = True
318
# -- Options for manual page output ---------------------------------------
320
# One entry per manual page. List of tuples
321
# (source start file, name, description, authors, manual section).
322
man_pages = [("index", "aiosignal", "aiosignal Documentation", ["aiosignal"], 1)]
324
# If true, show URL addresses after external links.
325
# man_show_urls = False
328
# -- Options for Texinfo output -------------------------------------------
330
# Grouping the document tree into Texinfo files. List of tuples
331
# (source start file, target name, title, author,
332
# dir menu entry, description, category)
337
"aiosignal Documentation",
338
"aiosignal contributors",
340
"One line description of project.",
345
# Documents to append as an appendix to all manuals.
346
# texinfo_appendices = []
348
# If false, no module index is generated.
349
# texinfo_domain_indices = True
351
# How to display URL addresses: 'footnote', 'no', or 'inline'.
352
# texinfo_show_urls = 'footnote'
354
# If true, do not generate a @detailmenu in the "Top" node's menu.
355
# texinfo_no_detailmenu = False