mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-08-05 22:21:00 -04:00
26 lines
702 B
Python
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"
|