mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 15:35:14 +00:00
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
This commit is contained in:
13
.github/workflows/api_doc_build.yml
vendored
13
.github/workflows/api_doc_build.yml
vendored
@@ -15,6 +15,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: bagatur/api_docs_build
|
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
|
- name: Set Git config
|
||||||
run: |
|
run: |
|
||||||
@@ -22,6 +31,7 @@ jobs:
|
|||||||
git config --local user.name "Github Actions"
|
git config --local user.name "Github Actions"
|
||||||
|
|
||||||
- name: Merge master
|
- name: Merge master
|
||||||
|
working-directory: langchain
|
||||||
run: |
|
run: |
|
||||||
git fetch origin master
|
git fetch origin master
|
||||||
git merge origin/master -m "Merge master" --allow-unrelated-histories -X theirs
|
git merge origin/master -m "Merge master" --allow-unrelated-histories -X theirs
|
||||||
@@ -34,6 +44,7 @@ jobs:
|
|||||||
cache-key: api-docs
|
cache-key: api-docs
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: langchain
|
||||||
run: |
|
run: |
|
||||||
poetry run python -m pip install --upgrade --no-cache-dir pip setuptools
|
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 --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
|
||||||
@@ -41,6 +52,7 @@ jobs:
|
|||||||
poetry run python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
|
poetry run python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
|
||||||
|
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
|
working-directory: langchain
|
||||||
run: |
|
run: |
|
||||||
poetry run python -m pip install --upgrade --no-cache-dir pip setuptools
|
poetry run python -m pip install --upgrade --no-cache-dir pip setuptools
|
||||||
poetry run python docs/api_reference/create_api_rst.py
|
poetry run python docs/api_reference/create_api_rst.py
|
||||||
@@ -49,4 +61,5 @@ jobs:
|
|||||||
# https://github.com/marketplace/actions/add-commit
|
# https://github.com/marketplace/actions/add-commit
|
||||||
- uses: EndBug/add-and-commit@v9
|
- uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
|
cwd: langchain
|
||||||
message: 'Update API docs build'
|
message: 'Update API docs build'
|
||||||
|
Reference in New Issue
Block a user