docs: api docs build folder prep update (#29220)

This commit is contained in:
Erick Friis 2025-01-14 19:52:00 -08:00 committed by GitHub
parent b05543c69b
commit 44b41b699c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,19 +64,23 @@ def main():
try: try:
# Load packages configuration # Load packages configuration
package_yaml = load_packages_yaml() package_yaml = load_packages_yaml()
packages = [
# Clean target directories
clean_target_directories([
p
for p in package_yaml["packages"]
if p["repo"].startswith("langchain-ai/")
and p["repo"] != "langchain-ai/langchain"
])
# Move libraries to their new locations
move_libraries([
p p
for p in package_yaml["packages"] for p in package_yaml["packages"]
if not p.get("disabled", False) if not p.get("disabled", False)
and p["repo"].startswith("langchain-ai/") and p["repo"].startswith("langchain-ai/")
and p["repo"] != "langchain-ai/langchain" and p["repo"] != "langchain-ai/langchain"
] ])
# Clean target directories
clean_target_directories(packages)
# Move libraries to their new locations
move_libraries(packages)
print("Library sync completed successfully!") print("Library sync completed successfully!")