"""Sphinx configuration for byteb4rb1e.devutils."""
from pathlib import Path

from setuptools_scm import get_version

project = "byteb4rb1e.sphinxcontrib.h5p.utils.pkg"
author = "Tiara Rodney"
copyright = "2026, Tiara Rodney"
version = get_version(root=Path(__file__).parents[1])
release = version

extensions = [
    "myst_parser",
    "sphinx.ext.autodoc",
    "sphinx.ext.autosummary",
    "sphinx.ext.intersphinx",
    "sphinxarg.ext",
]

autosummary_generate = True

templates_path = ["_templates"]
exclude_patterns = ["_build", "build"]

suppress_warnings = ["ref.python"]

html_theme = "sphinx_rtd_theme"
html_theme_options = {
    "navigation_depth": -1,
    "collapse_navigation": False,
}

intersphinx_mapping = {
    "python": ("https://docs.python.org/3", None),
}
