diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 07537af31b..528ee18626 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,9 +11,7 @@ build: sphinx: configuration: docs/conf.py -formats: - - pdf - - epub +formats: [] python: install: diff --git a/docs/conf.py b/docs/conf.py index 26aee16b5c..0a1c277695 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -105,6 +105,25 @@ 'sagemaker.serve.model_server.torchserve.inference', 'sagemaker.serve.model_server.torchserve.xgboost_inference', 'sagemaker.serve.model_server.triton.model', + # Heavy runtime dependencies — mock to avoid slow/failing imports during doc build + 'boto3', + 'botocore', + 'torch', + 'tensorflow', + 'sklearn', + 'numpy', + 'pandas', + 'scipy', + 'xgboost', + 'lightgbm', + 'mlflow', + 'pyspark', + 'transformers', + 'datasets', + 'trl', ] suppress_warnings = ['autodoc.import_error'] + +# Speed up builds: only regenerate autosummary stubs if they don't exist +autosummary_generate_overwrite = False