2023-05-05 23:45:26 +00:00
|
|
|
# Read the Docs configuration file
|
|
|
|
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
|
|
|
|
|
|
# Required
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
# Set the version of Python and other tools you might need
|
|
|
|
build:
|
|
|
|
os: ubuntu-22.04
|
|
|
|
tools:
|
|
|
|
python: "3.11"
|
2023-10-14 02:50:22 +00:00
|
|
|
commands:
|
|
|
|
- python -mvirtualenv $READTHEDOCS_VIRTUALENV_PATH
|
|
|
|
- python -m pip install --upgrade --no-cache-dir pip setuptools
|
|
|
|
- python -m pip install --upgrade --no-cache-dir sphinx readthedocs-sphinx-ext
|
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>
2023-12-17 20:55:59 +00:00
|
|
|
- python -m pip install ./libs/partners/*
|
2023-12-21 19:05:02 +00:00
|
|
|
- python -m pip install --exists-action=w --no-cache-dir -r docs/api_reference/requirements.txt
|
2023-06-30 16:23:32 +00:00
|
|
|
- python docs/api_reference/create_api_rst.py
|
2023-10-14 02:50:22 +00:00
|
|
|
- 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
|
2023-05-05 23:45:26 +00:00
|
|
|
|
|
|
|
# Build documentation in the docs/ directory with Sphinx
|
|
|
|
sphinx:
|
2023-06-16 18:52:56 +00:00
|
|
|
configuration: docs/api_reference/conf.py
|
2023-05-05 23:45:26 +00:00
|
|
|
|
|
|
|
# If using Sphinx, optionally build your docs in additional formats such as PDF
|
|
|
|
# formats:
|
|
|
|
# - pdf
|
|
|
|
|
|
|
|
# Optionally declare the Python requirements required to build your docs
|
|
|
|
python:
|
|
|
|
install:
|
2023-07-21 20:52:03 +00:00
|
|
|
- requirements: docs/api_reference/requirements.txt
|