Files

54 lines
1.8 KiB
Python
Raw Permalink Normal View History

2025-05-09 13:06:42 -05:00
import os
import sys
# This adds the 'py/' directory to the Python path
2025-11-25 15:31:11 -06:00
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
2025-05-09 13:06:42 -05:00
2025-05-09 12:26:44 -05:00
# 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
project = "PhotonVision"
copyright = "2025, Matt Morley, Banks Troutman"
author = "Matt Morley, Banks Troutman"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon", # for Google/NumPy docstrings
"sphinx_autodoc_typehints", # for type hints in docs
]
import os
import sys
2025-11-26 21:10:02 -06:00
sys.path.insert(
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "_stubs"))
) # add docs stubs first so they shadow unavailable third-party packages
2025-05-09 12:57:42 -05:00
sys.path.insert(
0, os.path.abspath("../../photonlibpy")
) # adjust based on your project layout
2025-11-26 21:10:02 -06:00
# Mock imports that aren't available in the docs build environment so autodoc
# can import the local modules even if optional runtime deps (like wpimath)
# aren't installed. Add other names here if you see warnings for missing
# third-party packages during the build.
autodoc_mock_imports = [
"wpilib",
]
2025-05-09 12:26:44 -05:00
templates_path = ["_templates"]
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2025-05-09 12:44:31 -05:00
html_theme = "sphinx_rtd_theme"
2025-05-09 12:26:44 -05:00
html_static_path = ["_static"]