Files
conference-room-booking-system/backend/docs/conf.py
Cliff Hill 82bdb528f9 More fixes.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-02 23:24:44 -04:00

26 lines
702 B
Python

"""Sphinx configuration."""
import os
os.environ.setdefault("DATABASE_PROTOCOL", "sqlite")
os.environ.setdefault("DATABASE_USER", "testuser")
os.environ.setdefault("DATABASE_PASSWORD", "testpass")
os.environ.setdefault("DATABASE_HOST", "localhost")
os.environ.setdefault("DATABASE_PORT", "5432")
os.environ.setdefault("DATABASE_NAME", "testdb")
# Patch: Use a valid async SQLite URL for Sphinx autodoc
os.environ["DATABASE_URL"] = "sqlite+aiosqlite:///:memory:"
project = "Backend"
author = "Cliff Hill"
copyright = "2025, Cliff Hill"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx_click",
"myst_parser",
]
autodoc_typehints = "description"
html_theme = "furo"