Fix more missing docs
This commit is contained in:
@@ -9,10 +9,6 @@ build:
|
|||||||
# Commands to run before the build
|
# Commands to run before the build
|
||||||
- python -m pip install --upgrade pip
|
- python -m pip install --upgrade pip
|
||||||
- pip install wheel setuptools
|
- pip install wheel setuptools
|
||||||
post_create_environment:
|
|
||||||
# Install system dependencies required by some packages
|
|
||||||
- apt-get update
|
|
||||||
- apt-get install -y portaudio19-dev python3-pyaudio
|
|
||||||
post_build:
|
post_build:
|
||||||
# Commands to run after the build
|
# Commands to run after the build
|
||||||
- echo "Build completed"
|
- echo "Build completed"
|
||||||
@@ -36,6 +32,7 @@ python:
|
|||||||
- azure
|
- azure
|
||||||
- canonical
|
- canonical
|
||||||
- cartesia
|
- cartesia
|
||||||
|
- daily
|
||||||
- deepgram
|
- deepgram
|
||||||
- elevenlabs
|
- elevenlabs
|
||||||
- fal
|
- fal
|
||||||
@@ -48,6 +45,7 @@ python:
|
|||||||
- langchain
|
- langchain
|
||||||
- livekit
|
- livekit
|
||||||
- lmnt
|
- lmnt
|
||||||
|
- local
|
||||||
- moondream
|
- moondream
|
||||||
- nim
|
- nim
|
||||||
- noisereduce
|
- noisereduce
|
||||||
@@ -64,14 +62,12 @@ formats:
|
|||||||
- epub
|
- epub
|
||||||
- htmlzip
|
- htmlzip
|
||||||
|
|
||||||
# Cache dependencies to speed up builds
|
|
||||||
search:
|
search:
|
||||||
ranking:
|
ranking:
|
||||||
api/*: 5
|
api/*: 5
|
||||||
getting-started/*: 4
|
getting-started/*: 4
|
||||||
guides/*: 3
|
guides/*: 3
|
||||||
|
|
||||||
# Configure submodules if needed
|
|
||||||
submodules:
|
submodules:
|
||||||
include: all
|
include: all
|
||||||
recursive: true
|
recursive: true
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ This directory contains the source files for auto-generating Pipecat's server AP
|
|||||||
1. Install documentation dependencies:
|
1. Install documentation dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements-base.txt requirements-playht.txt requirements-riva.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Make the build scripts executable:
|
2. Make the build scripts executable:
|
||||||
|
|||||||
@@ -63,6 +63,16 @@ autodoc_mock_imports = [
|
|||||||
"openpipe",
|
"openpipe",
|
||||||
"simli",
|
"simli",
|
||||||
"soundfile",
|
"soundfile",
|
||||||
|
# Add these new mocks
|
||||||
|
"pyaudio",
|
||||||
|
"_tkinter",
|
||||||
|
"tkinter",
|
||||||
|
"daily",
|
||||||
|
"daily_python",
|
||||||
|
"pydantic.BaseModel", # Mock base pydantic to avoid model conflicts
|
||||||
|
"pydantic.Field",
|
||||||
|
"pydantic._internal._model_construction",
|
||||||
|
"pydantic._internal._fields",
|
||||||
]
|
]
|
||||||
|
|
||||||
# HTML output settings
|
# HTML output settings
|
||||||
@@ -87,19 +97,40 @@ def verify_modules():
|
|||||||
],
|
],
|
||||||
"serializers": ["livekit"],
|
"serializers": ["livekit"],
|
||||||
"vad": ["silero", "vad_analyzer"],
|
"vad": ["silero", "vad_analyzer"],
|
||||||
|
"transports": {
|
||||||
|
"services": ["daily", "livekit"],
|
||||||
|
"local": ["audio", "tk"],
|
||||||
|
"network": ["fastapi_websocket", "websocket_server"],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
missing = []
|
missing = []
|
||||||
for category, modules in required_modules.items():
|
for category, modules in required_modules.items():
|
||||||
for module in modules:
|
if isinstance(modules, dict):
|
||||||
try:
|
# Handle nested structure
|
||||||
__import__(f"pipecat.{category}.{module}")
|
for subcategory, submodules in modules.items():
|
||||||
logger.info(f"Successfully imported pipecat.{category}.{module}")
|
for module in submodules:
|
||||||
except ImportError as e:
|
try:
|
||||||
missing.append(f"pipecat.{category}.{module}")
|
__import__(f"pipecat.{category}.{subcategory}.{module}")
|
||||||
logger.warning(
|
logger.info(
|
||||||
f"Optional module not available: pipecat.{category}.{module} - {str(e)}"
|
f"Successfully imported pipecat.{category}.{subcategory}.{module}"
|
||||||
)
|
)
|
||||||
|
except (ImportError, TypeError, NameError) as e:
|
||||||
|
missing.append(f"pipecat.{category}.{subcategory}.{module}")
|
||||||
|
logger.warning(
|
||||||
|
f"Optional module not available: pipecat.{category}.{subcategory}.{module} - {str(e)}"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
# Handle flat structure
|
||||||
|
for module in modules:
|
||||||
|
try:
|
||||||
|
__import__(f"pipecat.{category}.{module}")
|
||||||
|
logger.info(f"Successfully imported pipecat.{category}.{module}")
|
||||||
|
except (ImportError, TypeError, NameError) as e:
|
||||||
|
missing.append(f"pipecat.{category}.{module}")
|
||||||
|
logger.warning(
|
||||||
|
f"Optional module not available: pipecat.{category}.{module} - {str(e)}"
|
||||||
|
)
|
||||||
|
|
||||||
if missing:
|
if missing:
|
||||||
logger.warning(f"Some optional modules are not available: {missing}")
|
logger.warning(f"Some optional modules are not available: {missing}")
|
||||||
@@ -167,10 +198,8 @@ def setup(app):
|
|||||||
logger.info(f"Source directory: {source_dir}")
|
logger.info(f"Source directory: {source_dir}")
|
||||||
|
|
||||||
excludes = [
|
excludes = [
|
||||||
|
str(project_root / "src/pipecat/pipeline/to_be_updated"),
|
||||||
str(project_root / "src/pipecat/processors/gstreamer"),
|
str(project_root / "src/pipecat/processors/gstreamer"),
|
||||||
str(project_root / "src/pipecat/transports/network"),
|
|
||||||
str(project_root / "src/pipecat/transports/services"),
|
|
||||||
str(project_root / "src/pipecat/transports/local"),
|
|
||||||
str(project_root / "src/pipecat/services/to_be_updated"),
|
str(project_root / "src/pipecat/services/to_be_updated"),
|
||||||
"**/test_*.py",
|
"**/test_*.py",
|
||||||
"**/tests/*.py",
|
"**/tests/*.py",
|
||||||
@@ -179,12 +208,13 @@ def setup(app):
|
|||||||
try:
|
try:
|
||||||
main(
|
main(
|
||||||
[
|
[
|
||||||
"-f",
|
"-f", # Force overwriting
|
||||||
"-e",
|
"-e", # Don't generate empty files
|
||||||
"-M",
|
"-M", # Put module documentation before submodule documentation
|
||||||
"--no-toc",
|
"--no-toc", # Don't create a table of contents file
|
||||||
"--separate",
|
"--separate", # Put documentation for each module in its own page
|
||||||
"--module-first",
|
"--module-first", # Module documentation before submodule documentation
|
||||||
|
"--implicit-namespaces", # Added: Handle implicit namespace packages
|
||||||
"-o",
|
"-o",
|
||||||
output_dir,
|
output_dir,
|
||||||
source_dir,
|
source_dir,
|
||||||
@@ -195,7 +225,7 @@ def setup(app):
|
|||||||
logger.info("API documentation generated successfully!")
|
logger.info("API documentation generated successfully!")
|
||||||
|
|
||||||
# Process generated RST files to update titles
|
# Process generated RST files to update titles
|
||||||
for rst_file in Path(output_dir).glob("*.rst"):
|
for rst_file in Path(output_dir).glob("**/*.rst"): # Changed to recursive glob
|
||||||
content = rst_file.read_text()
|
content = rst_file.read_text()
|
||||||
lines = content.split("\n")
|
lines = content.split("\n")
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ Core Components
|
|||||||
* :mod:`Frames <pipecat.frames>`
|
* :mod:`Frames <pipecat.frames>`
|
||||||
* :mod:`Processors <pipecat.processors>`
|
* :mod:`Processors <pipecat.processors>`
|
||||||
* :mod:`Pipeline <pipecat.pipeline>`
|
* :mod:`Pipeline <pipecat.pipeline>`
|
||||||
* :mod:`Services <pipecat.services>`
|
|
||||||
|
|
||||||
Audio Processing
|
Audio Processing
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
@@ -30,10 +29,18 @@ Audio Processing
|
|||||||
* :mod:`Audio <pipecat.audio>`
|
* :mod:`Audio <pipecat.audio>`
|
||||||
* :mod:`VAD <pipecat.vad>`
|
* :mod:`VAD <pipecat.vad>`
|
||||||
|
|
||||||
|
Services
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
* :mod:`Services <pipecat.services>`
|
||||||
|
|
||||||
Transport & Serialization
|
Transport & Serialization
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* :mod:`Transports <pipecat.transports>`
|
* :mod:`Transports <pipecat.transports>`
|
||||||
|
* :mod:`Local <pipecat.transports.local>`
|
||||||
|
* :mod:`Network <pipecat.transports.network>`
|
||||||
|
* :mod:`Services <pipecat.transports.services>`
|
||||||
* :mod:`Serializers <pipecat.serializers>`
|
* :mod:`Serializers <pipecat.serializers>`
|
||||||
|
|
||||||
Utilities
|
Utilities
|
||||||
@@ -46,7 +53,7 @@ Utilities
|
|||||||
* :mod:`Utils <pipecat.utils>`
|
* :mod:`Utils <pipecat.utils>`
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 3
|
||||||
:caption: API Reference
|
:caption: API Reference
|
||||||
:hidden:
|
:hidden:
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ pipecat-ai[aws]
|
|||||||
pipecat-ai[azure]
|
pipecat-ai[azure]
|
||||||
pipecat-ai[canonical]
|
pipecat-ai[canonical]
|
||||||
pipecat-ai[cartesia]
|
pipecat-ai[cartesia]
|
||||||
|
pipecat-ai[daily]
|
||||||
pipecat-ai[deepgram]
|
pipecat-ai[deepgram]
|
||||||
pipecat-ai[elevenlabs]
|
pipecat-ai[elevenlabs]
|
||||||
pipecat-ai[fal]
|
pipecat-ai[fal]
|
||||||
@@ -24,6 +25,7 @@ pipecat-ai[krisp]
|
|||||||
pipecat-ai[langchain]
|
pipecat-ai[langchain]
|
||||||
pipecat-ai[livekit]
|
pipecat-ai[livekit]
|
||||||
pipecat-ai[lmnt]
|
pipecat-ai[lmnt]
|
||||||
|
pipecat-ai[local]
|
||||||
pipecat-ai[moondream]
|
pipecat-ai[moondream]
|
||||||
pipecat-ai[nim]
|
pipecat-ai[nim]
|
||||||
pipecat-ai[noisereduce]
|
pipecat-ai[noisereduce]
|
||||||
|
|||||||
Reference in New Issue
Block a user