Skip to content

Commit

Permalink
docs: api docs build folder prep update (#29220)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Jan 15, 2025
1 parent b05543c commit 44b41b6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/scripts/prep_api_docs_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,23 @@ def main():
try:
# Load packages configuration
package_yaml = load_packages_yaml()
packages = [

# Clean target directories
clean_target_directories([
p
for p in package_yaml["packages"]
if not p.get("disabled", False)
and p["repo"].startswith("langchain-ai/")
if p["repo"].startswith("langchain-ai/")
and p["repo"] != "langchain-ai/langchain"
]

# Clean target directories
clean_target_directories(packages)
])

# Move libraries to their new locations
move_libraries(packages)
move_libraries([
p
for p in package_yaml["packages"]
if not p.get("disabled", False)
and p["repo"].startswith("langchain-ai/")
and p["repo"] != "langchain-ai/langchain"
])

print("Library sync completed successfully!")

Expand Down

0 comments on commit 44b41b6

Please sign in to comment.