Skip to content

Commit 44b41b6

Browse files
author
Erick Friis
authored
docs: api docs build folder prep update (#29220)
1 parent b05543c commit 44b41b6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/scripts/prep_api_docs_build.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,23 @@ def main():
6464
try:
6565
# Load packages configuration
6666
package_yaml = load_packages_yaml()
67-
packages = [
67+
68+
# Clean target directories
69+
clean_target_directories([
6870
p
6971
for p in package_yaml["packages"]
70-
if not p.get("disabled", False)
71-
and p["repo"].startswith("langchain-ai/")
72+
if p["repo"].startswith("langchain-ai/")
7273
and p["repo"] != "langchain-ai/langchain"
73-
]
74-
75-
# Clean target directories
76-
clean_target_directories(packages)
74+
])
7775

7876
# Move libraries to their new locations
79-
move_libraries(packages)
77+
move_libraries([
78+
p
79+
for p in package_yaml["packages"]
80+
if not p.get("disabled", False)
81+
and p["repo"].startswith("langchain-ai/")
82+
and p["repo"] != "langchain-ai/langchain"
83+
])
8084

8185
print("Library sync completed successfully!")
8286

0 commit comments

Comments
 (0)