
# Minimal Sphinx configuration
import os
import sys
from pathlib import Path

# Add project to path
BASE_DIR = Path(__file__).resolve().parent.parent.parent
sys.path.insert(0, str(BASE_DIR))

project = 'Rapha-Bethel BNPS'
copyright = '2026, Vi-2s-Dk Foundation'
author = 'Vi-2s-Dk Foundation'
release = '1.0.0'

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.napoleon',
    'sphinx_rtd_theme',
]

# Mock all Django and app imports
autodoc_mock_imports = [
    'django',
    'django.db',
    'django.contrib',
    'django.utils',
    'django.conf',
    'PIL',
    'core',
    'students',
    'staff',
    'academics',
    'finance',
    'communication',
    'parents',
    'reports',
]

# Napoleon settings
napoleon_google_docstring = True
napoleon_include_init_with_doc = True

# HTML output
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
