Files
PhotonVision/photon-lib/py/docs/source/conf.py

44 lines
1.4 KiB
Python
Raw Normal View History

2025-05-09 13:06:42 -05:00
import os
import sys
# This adds the 'py/' directory to the Python path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')))
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-05-09 12:57:42 -05:00
sys.path.insert(
0, os.path.abspath("../../photonlibpy")
) # adjust based on your project layout
2025-05-09 13:03:05 -05:00
print(sys.path)
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"]