|
1 | | -# Configuration file for Sphinx documentation builder |
| 1 | +# Configuration file for Sphinx - ENFOQUE RADICAL |
| 2 | +# NO intenta importar el módulo, solo mockea TODO |
2 | 3 |
|
3 | 4 | import os |
4 | 5 | import sys |
5 | 6 |
|
6 | | -# Agregar directorio padre al path |
| 7 | +# Agregar directorio padre al path (por si acaso) |
7 | 8 | sys.path.insert(0, os.path.abspath('..')) |
8 | 9 |
|
9 | 10 | # -- Project information ----------------------------------------------------- |
|
16 | 17 | # -- General configuration --------------------------------------------------- |
17 | 18 | extensions = [ |
18 | 19 | 'sphinx.ext.autodoc', |
19 | | - 'sphinx.ext.napoleon', # Para docstrings estilo Google |
| 20 | + 'sphinx.ext.napoleon', |
20 | 21 | 'sphinx_rtd_theme', |
21 | 22 | ] |
22 | 23 |
|
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 |
24 | 48 | autodoc_default_options = { |
25 | 49 | 'members': True, |
26 | 50 | 'undoc-members': True, |
| 51 | + 'private-members': False, |
| 52 | + 'special-members': '__init__', |
| 53 | + 'inherited-members': True, |
| 54 | + 'show-inheritance': True, |
27 | 55 | 'member-order': 'bysource', |
28 | 56 | } |
29 | 57 |
|
30 | | -# IMPORTANTE para métodos decorados |
| 58 | +# CRÍTICO: Forzar que funcione incluso con módulos mockeados |
31 | 59 | autodoc_inherit_docstrings = True |
| 60 | +autodoc_preserve_defaults = True |
| 61 | +autodoc_typehints = 'none' # Simplificar |
32 | 62 |
|
33 | | -# Configuración de napoleon |
| 63 | +# Napoleon para docstrings estilo Google |
34 | 64 | napoleon_google_docstring = True |
35 | 65 | 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 |
36 | 69 |
|
37 | 70 | templates_path = ['_templates'] |
38 | 71 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
|
0 commit comments