mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 12:31:49 +00:00
include in api ref
This commit is contained in:
parent
ab871a7b39
commit
cd306978b6
7
.github/scripts/prep_api_docs_build.py
vendored
7
.github/scripts/prep_api_docs_build.py
vendored
@ -59,6 +59,9 @@ def move_libraries(packages: list) -> None:
|
|||||||
print(f"Error moving {source_dir} to {target_dir}: {e}")
|
print(f"Error moving {source_dir} to {target_dir}: {e}")
|
||||||
|
|
||||||
|
|
||||||
|
OUTSIDE_REPOS = ["tavily-ai/langchain-tavily"]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main function to orchestrate the library sync process."""
|
"""Main function to orchestrate the library sync process."""
|
||||||
try:
|
try:
|
||||||
@ -69,7 +72,7 @@ def main():
|
|||||||
clean_target_directories([
|
clean_target_directories([
|
||||||
p
|
p
|
||||||
for p in package_yaml["packages"]
|
for p in package_yaml["packages"]
|
||||||
if p["repo"].startswith("langchain-ai/")
|
if (p["repo"].startswith("langchain-ai/") or p["repo"] in OUTSIDE_REPOS)
|
||||||
and p["repo"] != "langchain-ai/langchain"
|
and p["repo"] != "langchain-ai/langchain"
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -78,7 +81,7 @@ def main():
|
|||||||
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/") or p["repo"] in OUTSIDE_REPOS)
|
||||||
and p["repo"] != "langchain-ai/langchain"
|
and p["repo"] != "langchain-ai/langchain"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
5
.github/workflows/api_doc_build.yml
vendored
5
.github/workflows/api_doc_build.yml
vendored
@ -38,7 +38,10 @@ jobs:
|
|||||||
|
|
||||||
# Checkout each unique repository that is in langchain-ai org
|
# Checkout each unique repository that is in langchain-ai org
|
||||||
for repo in $REPOS; do
|
for repo in $REPOS; do
|
||||||
if [[ "$repo" != "langchain-ai/langchain" && "$repo" == langchain-ai/* ]]; then
|
if {
|
||||||
|
[[ "$repo" != "langchain-ai/langchain" ]] &&
|
||||||
|
[[ "$repo" == langchain-ai/* ]]
|
||||||
|
} || [[ "$repo" == "tavily-ai/langchain-tavily" ]]; then
|
||||||
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
||||||
echo "Checking out $repo to $REPO_NAME"
|
echo "Checking out $repo to $REPO_NAME"
|
||||||
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
||||||
|
Loading…
Reference in New Issue
Block a user