Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # Configuration file for the Sphinx documentation builder.
2 #
3 # This file only contains a selection of the most common options. For a full
4 # list see the documentation:
5 # https://www.sphinx-doc.org/en/master/usage/configuration.html
6
7 # -- Project information -----------------------------------------------------
8
9 import datetime
10 import os
11 import pathlib
12 import sys
13
14 root = pathlib.Path(__file__).parent.parent
15 sys.path.insert(0, root.as_posix())
16
17 project = "aioitertools"
18 copyright = "2022, Amethyst Reese"
19 author = "Amethyst Reese"
20
21
22 # -- General configuration ---------------------------------------------------
23
24 # Add any Sphinx extension module names here, as strings. They can be
25 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
26 # ones.
27 extensions = [
28 "sphinx.ext.autodoc",
29 "sphinx.ext.intersphinx",
30 "sphinx_mdinclude",
31 ]
32
33 autodoc_default_options = {
34 "show-inheritance": True,
35 "members": True,
36 "inherited-members": True,
37 }
38 autodoc_member_order = "bysource"
39 autodoc_typehints = "description"
40
41 # Add any paths that contain templates here, relative to this directory.
42 templates_path = ["_templates"]
43
44 # List of patterns, relative to source directory, that match files and
45 # directories to ignore when looking for source files.
46 # This pattern also affects html_static_path and html_extra_path.
47 exclude_patterns = []
48
49 highlight_language = "python3"
50 intersphinx_mapping = {"python": ("/usr/share/doc/python3/html", None)}
51 master_doc = "index"
52
53 # Set canonical URL from the Read the Docs Domain
54 html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
55
56 # -- Options for HTML output -------------------------------------------------
57
58 # The theme to use for HTML and HTML Help pages. See the documentation for
59 # a list of builtin themes.
60 #
61 html_theme = "alabaster"
62 html_theme_options = {
63 "description": "itertools and more for AsyncIO",
64 "fixed_sidebar": True,
65 "badge_branch": "master",
66 "github_button": False,
67 "github_user": "omnilib",
68 "github_repo": "aioitertools",
69 "show_powered_by": False,
70 "sidebar_collapse": False,
71 "extra_nav_links": {
72 "Report Issues": "https://github.com/omnilib/aioitertools/issues",
73 },
74 }
75
76 html_sidebars = {
77 "**": [
78 "about.html",
79 "badges.html",
80 "navigation.html",
81 "relations.html",
82 "searchbox.html",
83 "omnilib.html",
84 ],
85 }
86
87 # Add any paths that contain custom static files (such as style sheets) here,
88 # relative to this directory. They are copied after the builtin static files,
89 # so a file named "default.css" will overwrite the builtin "default.css".
90 html_static_path = ["_static"]