Skip to content

Commit

Permalink
Pull API ref build
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jan 15, 2025
1 parent f57b38c commit 591011d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install-vercel-deps:
PYTHON = .venv/bin/python

build-api-ref:
git clone --depth=1 https://github.com/langchain-ai/langsmith-sdk.git
git clone --depth=1 -b jacob/api_refs https://github.com/langchain-ai/langsmith-sdk.git
python3 -m venv .venv
. .venv/bin/activate
$(PYTHON) -m pip install --upgrade pip
Expand All @@ -14,11 +14,13 @@ build-api-ref:
$(PYTHON) langsmith-sdk/python/docs/create_api_rst.py
LC_ALL=C $(PYTHON) -m sphinx -T -E -b html -d langsmith-sdk/python/docs/_build/doctrees -c langsmith-sdk/python/docs langsmith-sdk/python/docs langsmith-sdk/python/docs/_build/html -j auto
$(PYTHON) langsmith-sdk/python/docs/scripts/custom_formatter.py langsmith-sdk/docs/_build/html/

cd js && yarn
yarn run build:typedoc

vercel-build: install-vercel-deps build-api-ref
mkdir -p static/reference/python
mv langsmith-sdk/python/docs/_build/html/* static/reference/python/
mv langsmith-sdk/js/_build/api_refs/* static/reference/js/
rm -rf langsmith-sdk
NODE_OPTIONS="--max-old-space-size=5000" yarn run docusaurus build

0 comments on commit 591011d

Please sign in to comment.