Speed up builds, mocking large packages
This commit is contained in:
@@ -11,7 +11,7 @@ build:
|
|||||||
jobs:
|
jobs:
|
||||||
post_install:
|
post_install:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --group docs --all-extras --no-extra krisp --no-extra gstreamer
|
- UV_PROJECT_ENVIRONMENT=$READTHEDOCS_VIRTUALENV_PATH uv sync --group docs --all-extras --no-extra krisp --no-extra gstreamer --no-extra ultravox --no-extra local_smart_turn --no-extra moondream --no-extra riva --no-extra mlx-whisper
|
||||||
|
|
||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/api/conf.py
|
configuration: docs/api/conf.py
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Build docs using uv
|
# Build docs using uv
|
||||||
echo "Installing dependencies with uv..."
|
echo "Installing dependencies with uv..."
|
||||||
uv sync --group docs --all-extras --no-extra krisp --no-extra gstreamer
|
uv sync --group docs --all-extras --no-extra krisp --no-extra gstreamer --no-extra ultravox --no-extra local_smart_turn --no-extra moondream --no-extra riva --no-extra mlx-whisper
|
||||||
|
|
||||||
# Check if sphinx-build is available
|
# Check if sphinx-build is available
|
||||||
if ! uv run sphinx-build --version &> /dev/null; then
|
if ! uv run sphinx-build --version &> /dev/null; then
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ autodoc_default_options = {
|
|||||||
"show-inheritance": True,
|
"show-inheritance": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Mock imports for problematic dependencies only
|
# Mock imports for optional dependencies
|
||||||
autodoc_mock_imports = [
|
autodoc_mock_imports = [
|
||||||
# Krisp - has build issues on some platforms
|
# Krisp - has build issues on some platforms
|
||||||
"pipecat_ai_krisp",
|
"pipecat_ai_krisp",
|
||||||
@@ -54,10 +54,45 @@ autodoc_mock_imports = [
|
|||||||
"_tkinter",
|
"_tkinter",
|
||||||
"tkinter",
|
"tkinter",
|
||||||
# Platform-specific audio libraries (if needed)
|
# Platform-specific audio libraries (if needed)
|
||||||
# gstreamer
|
|
||||||
"gi",
|
"gi",
|
||||||
"gi.require_version",
|
"gi.require_version",
|
||||||
"gi.repository",
|
"gi.repository",
|
||||||
|
# OpenCV - sometimes has import issues during docs build
|
||||||
|
"cv2",
|
||||||
|
# Heavy ML packages excluded from ReadTheDocs
|
||||||
|
# ultravox dependencies
|
||||||
|
"vllm",
|
||||||
|
"vllm.engine.arg_utils",
|
||||||
|
# local-smart-turn dependencies
|
||||||
|
"coremltools",
|
||||||
|
"coremltools.models",
|
||||||
|
"coremltools.models.MLModel",
|
||||||
|
"torch",
|
||||||
|
"torch.nn",
|
||||||
|
"torch.nn.functional",
|
||||||
|
"torchaudio",
|
||||||
|
# moondream dependencies
|
||||||
|
"transformers",
|
||||||
|
"transformers.AutoTokenizer",
|
||||||
|
"transformers.AutoFeatureExtractor",
|
||||||
|
"AutoFeatureExtractor",
|
||||||
|
"timm",
|
||||||
|
"einops",
|
||||||
|
"intel_extension_for_pytorch",
|
||||||
|
"huggingface_hub",
|
||||||
|
# riva dependencies
|
||||||
|
"riva",
|
||||||
|
"riva.client",
|
||||||
|
"riva.client.Auth",
|
||||||
|
"riva.client.ASRService",
|
||||||
|
"riva.client.StreamingRecognitionConfig",
|
||||||
|
"riva.client.RecognitionConfig",
|
||||||
|
"riva.client.AudioEncoding",
|
||||||
|
"riva.client.proto.riva_tts_pb2",
|
||||||
|
"riva.client.SpeechSynthesisService",
|
||||||
|
# MLX dependencies (Apple Silicon specific)
|
||||||
|
"mlx",
|
||||||
|
"mlx_whisper", # Note: might need underscore format too
|
||||||
]
|
]
|
||||||
|
|
||||||
# HTML output settings
|
# HTML output settings
|
||||||
|
|||||||
Reference in New Issue
Block a user