Skip to content

Commit 6134e57

Browse files
fix: build timeout for readthedocs (#5744)
* Update v3 readthedocs to autorender all submodules * Maintain previous opinionated list, add new section of full module reference * Add sagemaker-core description in init * Remove pdf and epub from format and mock runtime imports to fix build timeout in actual publishing attempt * Remove pdf and epub from format and mock runtime imports to fix build timeout in actual publishing attempt
1 parent 404c2b3 commit 6134e57

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ build:
1111
sphinx:
1212
configuration: docs/conf.py
1313

14-
formats:
15-
- pdf
16-
- epub
14+
formats: []
1715

1816
python:
1917
install:

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)