Skip to content

Commit 84574c8

Browse files
committed
Remove pdf and epub from format and mock runtime imports to fix build timeout in actual publishing attempt
1 parent 90aebae commit 84574c8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,25 @@
105105
'sagemaker.serve.model_server.torchserve.inference',
106106
'sagemaker.serve.model_server.torchserve.xgboost_inference',
107107
'sagemaker.serve.model_server.triton.model',
108+
# Heavy runtime dependencies — mock to avoid slow/failing imports during doc build
109+
'boto3',
110+
'botocore',
111+
'torch',
112+
'tensorflow',
113+
'sklearn',
114+
'numpy',
115+
'pandas',
116+
'scipy',
117+
'xgboost',
118+
'lightgbm',
119+
'mlflow',
120+
'pyspark',
121+
'transformers',
122+
'datasets',
123+
'trl',
108124
]
109125

110126
suppress_warnings = ['autodoc.import_error']
127+
128+
# Speed up builds: only regenerate autosummary stubs if they don't exist
129+
autosummary_generate_overwrite = False

0 commit comments

Comments
 (0)