# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
"""Sphinx configuration."""


import os
from typing import List

import toml

pyproject_path = os.path.join(os.path.dirname(__file__), '..', 'pyproject.toml')
metadata = toml.load(pyproject_path)["tool"]["poetry"]

project = "F1PyStats"
author = ",".join(metadata["authors"])
copyright = f"2023 {author}"
release = "0.1.1"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.napoleon",
    "sphinx_autodoc_typehints",
]

# templates_path = ['_templates']
exclude_patterns = []  # type: List[str]


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'furo'
# html_static_path = ['_static']
