-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: api docs for external repos (#17904)
Stacked on google removal PR. Will make google continue to show up in API docs even from external repo
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,23 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
ref: bagatur/api_docs_build | ||
path: langchain | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: langchain-ai/langchain-google | ||
path: langchain-google | ||
- name: Move google libs | ||
run: | | ||
mv langchain-google/libs/genai langchain/libs/partners/google-genai | ||
mv langchain-google/libs/vertexai langchain/libs/partners/google-vertexai | ||
- name: Set Git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Github Actions" | ||
- name: Merge master | ||
working-directory: langchain | ||
run: | | ||
git fetch origin master | ||
git merge origin/master -m "Merge master" --allow-unrelated-histories -X theirs | ||
|
@@ -34,13 +44,15 @@ jobs: | |
cache-key: api-docs | ||
|
||
- name: Install dependencies | ||
working-directory: langchain | ||
run: | | ||
poetry run python -m pip install --upgrade --no-cache-dir pip setuptools | ||
poetry run python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext | ||
poetry run python -m pip install ./libs/partners/* | ||
poetry run python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt | ||
- name: Build docs | ||
working-directory: langchain | ||
run: | | ||
poetry run python -m pip install --upgrade --no-cache-dir pip setuptools | ||
poetry run python docs/api_reference/create_api_rst.py | ||
|
@@ -49,4 +61,5 @@ jobs: | |
# https://github.com/marketplace/actions/add-commit | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
cwd: langchain | ||
message: 'Update API docs build' |