1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
"""Pykka documentation build configuration file."""
import pathlib
import sys
if sys.version_info >= (3, 11):
import tomllib
else:
import tomli as tomllib
project = "Pykka"
author = "Stein Magnus Jodal and contributors"
copyright = f"2010-2025, {author}" # noqa: A001
pyproject_path = pathlib.Path(__file__).parent.parent / "pyproject.toml"
with pyproject_path.open("rb") as fh:
pyproject = tomllib.load(fh)
release = pyproject["project"]["version"]
version = ".".join(release.split(".")[:2])
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
]
html_theme = "sphinx_rtd_theme"
html_use_modindex = True
html_use_index = True
html_split_index = False
html_show_sourcelink = True
modindex_common_prefix = ["pykka."]
autodoc_member_order = "bysource"
extlinks = {
"issue": ("https://github.com/jodal/pykka/issues/%s", "#%s"),
}
intersphinx_mapping = {
"python": ("/usr/share/doc/python3-doc/html", None),
}
|