Debian Codegraph @

mypyc/doc/conf.py

raw
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 from __future__ import annotations
8
9 import os
10 import sys
11
12 # If extensions (or modules to document with autodoc) are in another directory,
13 # add these directories to sys.path here. If the directory is relative to the
14 # documentation root, use os.path.abspath to make it absolute, like shown here.
15 sys.path.insert(0, os.path.abspath("../.."))
16
17 from mypy.version import __version__ as mypy_version
18
19 # -- Project information -----------------------------------------------------
20
21 project = "mypyc"
22 copyright = "2020-2022, mypyc team"
23 author = "mypyc team"
24
25 # The version info for the project you're documenting, acts as replacement for
26 # |version| and |release|, also used in various other places throughout the
27 # built documents.
28 #
29 # The short X.Y version.
30 version = mypy_version.split("-")[0]
31 # The full version, including alpha/beta/rc tags.
32 release = mypy_version
33
34 # -- General configuration ---------------------------------------------------
35
36 # Add any Sphinx extension module names here, as strings. They can be
37 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38 # ones.
39 extensions = ["sphinx.ext.intersphinx"]
40
41 intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
42
43 # Add any paths that contain templates here, relative to this directory.
44 templates_path = ["_templates"]
45
46 # List of patterns, relative to source directory, that match files and
47 # directories to ignore when looking for source files.
48 # This pattern also affects html_static_path and html_extra_path.
49 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
50
51
52 # -- Options for HTML output -------------------------------------------------
53
54 # The theme to use for HTML and HTML Help pages. See the documentation for
55 # a list of builtin themes.
56 html_theme = "furo"
57
58 # Add any paths that contain custom static files (such as style sheets) here,
59 # relative to this directory. They are copied after the builtin static files,
60 # so a file named "default.css" will overwrite the builtin "default.css".
61 html_static_path = ["_static"]