Skip to content

The agent engineering platform.

docs[patch]: local docs build <5s (#14096)

Erick Friisb161f302ff56
diff --git a/docs/.local_build.sh b/docs/.local_build.sh
index 8176edb806..5f65b130ca 100755
--- a/docs/.local_build.sh
+++ b/docs/.local_build.sh
@@ -9,10 +9,10 @@ SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
cd "${SCRIPT_DIR}"
mkdir -p ../_dist
-cp -r . ../_dist
+rsync -ruv . ../_dist
cd ../_dist
poetry run python scripts/model_feat_table.py
-poetry run nbdoc_build --srcdir docs
+poetry run nbdoc_build --srcdir docs --pause 0
cp ../cookbook/README.md src/pages/cookbook.mdx
cp ../.github/CONTRIBUTING.md docs/contributing.md
wget https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O docs/langserve.md
diff --git a/docs/vercel_build.sh b/docs/vercel_build.sh
index 8b53bd806b..3793a77123 100755
--- a/docs/vercel_build.sh
+++ b/docs/vercel_build.sh
@@ -53,5 +53,5 @@ python3.11 scripts/copy_templates.py
cp ../cookbook/README.md src/pages/cookbook.mdx
cp ../.github/CONTRIBUTING.md docs/contributing.md
wget https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O docs/langserve.md
-nbdoc_build --srcdir docs
+nbdoc_build --srcdir docs --pause 0
python3.11 scripts/generate_api_reference_links.py