Skip to content

Commit 012403b

Browse files
committed
fix: RADICAL config - mock everything, aggressive autodoc
1 parent a389399 commit 012403b

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

docs/conf.py

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Configuration file for Sphinx documentation builder
1+
# Configuration file for Sphinx - ENFOQUE RADICAL
2+
# NO intenta importar el módulo, solo mockea TODO
23

34
import os
45
import sys
56

6-
# Agregar directorio padre al path
7+
# Agregar directorio padre al path (por si acaso)
78
sys.path.insert(0, os.path.abspath('..'))
89

910
# -- Project information -----------------------------------------------------
@@ -16,23 +17,55 @@
1617
# -- General configuration ---------------------------------------------------
1718
extensions = [
1819
'sphinx.ext.autodoc',
19-
'sphinx.ext.napoleon', # Para docstrings estilo Google
20+
'sphinx.ext.napoleon',
2021
'sphinx_rtd_theme',
2122
]
2223

23-
# Configuración MINIMAL pero FUNCIONAL
24+
# MOCKEAR TODO - ENFOQUE RADICAL
25+
autodoc_mock_imports = [
26+
# Dependencias del sistema
27+
'requests',
28+
'six',
29+
'cachetools',
30+
'pycryptodome',
31+
'pytz',
32+
'confuse',
33+
'python-dotenv',
34+
'pyyaml',
35+
36+
# Módulos del paquete - MOCKEAR TODO EL PAQUETE
37+
'ad_api',
38+
'ad_api.base',
39+
'ad_api.api',
40+
'ad_api.api.sp',
41+
'ad_api.api.sb',
42+
'ad_api.api.sd',
43+
'ad_api.api.dsp',
44+
'ad_api.auth',
45+
]
46+
47+
# Configuración AGRESIVA de autodoc
2448
autodoc_default_options = {
2549
'members': True,
2650
'undoc-members': True,
51+
'private-members': False,
52+
'special-members': '__init__',
53+
'inherited-members': True,
54+
'show-inheritance': True,
2755
'member-order': 'bysource',
2856
}
2957

30-
# IMPORTANTE para métodos decorados
58+
# CRÍTICO: Forzar que funcione incluso con módulos mockeados
3159
autodoc_inherit_docstrings = True
60+
autodoc_preserve_defaults = True
61+
autodoc_typehints = 'none' # Simplificar
3262

33-
# Configuración de napoleon
63+
# Napoleon para docstrings estilo Google
3464
napoleon_google_docstring = True
3565
napoleon_numpy_docstring = False
66+
napoleon_include_init_with_doc = True
67+
napoleon_include_private_with_doc = False
68+
napoleon_include_special_with_doc = True
3669

3770
templates_path = ['_templates']
3871
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

0 commit comments

Comments
 (0)