mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-06 13:18:12 +00:00
infra: cut down on integration steps (#14785)
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
8a07c56313
commit
1acc7ffa3f
9
.github/workflows/_release.yml
vendored
9
.github/workflows/_release.yml
vendored
@ -11,15 +11,8 @@ on:
|
|||||||
inputs:
|
inputs:
|
||||||
working-directory:
|
working-directory:
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: string
|
||||||
default: 'libs/langchain'
|
default: 'libs/langchain'
|
||||||
options:
|
|
||||||
- libs/langchain
|
|
||||||
- libs/core
|
|
||||||
- libs/experimental
|
|
||||||
- libs/community
|
|
||||||
- libs/partners/google-genai
|
|
||||||
- libs/partners/nvidia-ai-endpoints
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.10"
|
PYTHON_VERSION: "3.10"
|
||||||
|
@ -14,6 +14,7 @@ build:
|
|||||||
- python -m pip install --upgrade --no-cache-dir pip setuptools
|
- python -m pip install --upgrade --no-cache-dir pip setuptools
|
||||||
- python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
|
- python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
|
||||||
- python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
|
- python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
|
||||||
|
- python -m pip install ./libs/partners/*
|
||||||
- python docs/api_reference/create_api_rst.py
|
- python docs/api_reference/create_api_rst.py
|
||||||
- cat docs/api_reference/conf.py
|
- cat docs/api_reference/conf.py
|
||||||
- python -m sphinx -T -E -b html -d _build/doctrees -c docs/api_reference docs/api_reference $READTHEDOCS_OUTPUT/html -j auto
|
- python -m sphinx -T -E -b html -d _build/doctrees -c docs/api_reference docs/api_reference $READTHEDOCS_OUTPUT/html -j auto
|
||||||
|
@ -72,8 +72,8 @@ def setup(app):
|
|||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = "🦜🔗 LangChain"
|
project = "🦜🔗 LangChain"
|
||||||
copyright = "2023, Harrison Chase"
|
copyright = "2023, LangChain, Inc."
|
||||||
author = "Harrison Chase"
|
author = "LangChain, Inc."
|
||||||
|
|
||||||
version = data["tool"]["poetry"]["version"]
|
version = data["tool"]["poetry"]["version"]
|
||||||
release = version
|
release = version
|
||||||
@ -141,13 +141,20 @@ redirects = {
|
|||||||
for old_link in redirects:
|
for old_link in redirects:
|
||||||
html_additional_pages[old_link] = "redirects.html"
|
html_additional_pages[old_link] = "redirects.html"
|
||||||
|
|
||||||
|
partners_dir = Path(__file__).parent.parent.parent / "libs/partners"
|
||||||
|
partners = [
|
||||||
|
(p.name, p.name.replace("-", "_") + "_api_reference")
|
||||||
|
for p in partners_dir.iterdir()
|
||||||
|
]
|
||||||
|
|
||||||
html_context = {
|
html_context = {
|
||||||
"display_github": True, # Integrate GitHub
|
"display_github": True, # Integrate GitHub
|
||||||
"github_user": "hwchase17", # Username
|
"github_user": "langchain-ai", # Username
|
||||||
"github_repo": "langchain", # Repo name
|
"github_repo": "langchain", # Repo name
|
||||||
"github_version": "master", # Version
|
"github_version": "master", # Version
|
||||||
"conf_py_path": "/docs/api_reference", # Path in the checkout to the docs root
|
"conf_py_path": "/docs/api_reference", # Path in the checkout to the docs root
|
||||||
"redirects": redirects,
|
"redirects": redirects,
|
||||||
|
"partners": partners,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
-e libs/langchain
|
-e libs/langchain
|
||||||
-e libs/core
|
-e libs/core
|
||||||
-e libs/community
|
-e libs/community
|
||||||
-e libs/partners/google-genai
|
|
||||||
pydantic<2
|
pydantic<2
|
||||||
autodoc_pydantic==1.8.0
|
autodoc_pydantic==1.8.0
|
||||||
myst_parser
|
myst_parser
|
||||||
|
@ -6,11 +6,6 @@
|
|||||||
{%- set top_container_cls = "sk-landing-container" %}
|
{%- set top_container_cls = "sk-landing-container" %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{# title, link, link_attrs #}
|
|
||||||
{%- set drop_down_navigation = [
|
|
||||||
('Google Generative AI', pathto('google_genai_api_reference'), ''),]
|
|
||||||
-%}
|
|
||||||
|
|
||||||
<nav id="navbar" class="{{ nav_bar_class }} navbar navbar-expand-md navbar-light bg-light py-0">
|
<nav id="navbar" class="{{ nav_bar_class }} navbar navbar-expand-md navbar-light bg-light py-0">
|
||||||
<div class="container-fluid {{ top_container_cls }} px-0">
|
<div class="container-fluid {{ top_container_cls }} px-0">
|
||||||
{%- if logo_url %}
|
{%- if logo_url %}
|
||||||
@ -48,16 +43,16 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="sk-nav-link nav-link" href="{{ pathto('experimental_api_reference') }}">Experimental</a>
|
<a class="sk-nav-link nav-link" href="{{ pathto('experimental_api_reference') }}">Experimental</a>
|
||||||
</li>
|
</li>
|
||||||
{%- for title, link, link_attrs in drop_down_navigation %}
|
{%- for title, pathname in partners %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="{{ link }}" {{ link_attrs }}>{{ title }}</a>
|
<a class="sk-nav-link nav-link nav-more-item-mobile-items" href="{{ pathto(pathname) }}">{{ title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
<li class="nav-item dropdown nav-more-item-dropdown">
|
<li class="nav-item dropdown nav-more-item-dropdown">
|
||||||
<a class="sk-nav-link nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Partner libs</a>
|
<a class="sk-nav-link nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Partner libs</a>
|
||||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
{%- for title, link, link_attrs in drop_down_navigation %}
|
{%- for title, pathname in partners %}
|
||||||
<a class="sk-nav-dropdown-item dropdown-item" href="{{ link }}" {{ link_attrs }}>{{ title}}</a>
|
<a class="sk-nav-dropdown-item dropdown-item" href="{{ pathto(pathname) }}">{{ title }}</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user