Skip to content

Commit 22fbc0b

Browse files
committed
fix: Add autodoc_mock_imports for Read the Docs
1 parent b2d1fd0 commit 22fbc0b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@
3333
# ones.
3434
extensions = ['sphinx.ext.autodoc', 'sphinx_rtd_theme']
3535

36+
# Mockear importaciones problemáticas para que autodoc funcione
37+
autodoc_mock_imports = [
38+
"requests",
39+
"cachetools",
40+
"pycryptodome",
41+
"pytz",
42+
"confuse",
43+
"six",
44+
"python-dotenv",
45+
"pyyaml",
46+
# El paquete principal se mockea como respaldo
47+
"ad_api",
48+
]
49+
50+
3651
# Add any paths that contain templates here, relative to this directory.
3752
templates_path = ['_templates']
3853

0 commit comments

Comments
 (0)