infra: support third-party integration packages in API ref build (#31021)

This commit is contained in:
ccurme
2025-04-25 16:02:27 -04:00
committed by GitHub
parent a82d987f09
commit 04a899ebe3
4 changed files with 22 additions and 8 deletions

View File

@@ -69,7 +69,7 @@ def main():
clean_target_directories([
p
for p in package_yaml["packages"]
if p["repo"].startswith("langchain-ai/")
if (p["repo"].startswith("langchain-ai/") or p.get("include_in_api_ref"))
and p["repo"] != "langchain-ai/langchain"
])
@@ -78,7 +78,7 @@ def main():
p
for p in package_yaml["packages"]
if not p.get("disabled", False)
and p["repo"].startswith("langchain-ai/")
and (p["repo"].startswith("langchain-ai/") or p.get("include_in_api_ref"))
and p["repo"] != "langchain-ai/langchain"
])