from __future__ import annotations
from importlib.metadata import version as get_version
project = "convolve-rs"
copyright = "2026, Alec Thomson"
author = "Alec Thomson"
version = release = get_version("convolve-rs")
extensions = [
"myst_nb", "sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx.ext.napoleon",
"sphinx_copybutton",
"autoapi.extension",
"sphinxcontrib.programoutput",
]
myst_enable_extensions = [
"colon_fence",
"dollarmath",
"amsmath",
]
nb_execution_mode = "force"
nb_execution_timeout = 300
nb_execution_raise_on_error = True
autoapi_type = "python"
autoapi_dirs = ["../convolve_rs"]
autoapi_file_patterns = ["*.pyi", "*.py"]
autoapi_member_order = "groupwise"
autoapi_keep_files = False
autoapi_root = "autoapi"
autoapi_add_toctree_entry = True
napoleon_google_docstring = True
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = True
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"astropy": ("https://docs.astropy.org/en/stable/", None),
}
source_suffix = [".rst", ".md"]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "furo"
html_static_path = ["_static"]
html_theme_options = {
"source_repository": "https://github.com/alecthomson/convolve-rs",
"source_branch": "main",
"source_directory": "docs/",
}