Compare commits

...

1 Commits

Author SHA1 Message Date
Chester Curme
0615d88bbb add back local build script 2024-05-03 15:46:21 -04:00
2 changed files with 31 additions and 0 deletions

28
docs/.local_build.sh Executable file
View File

@@ -0,0 +1,28 @@
!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
cd "${SCRIPT_DIR}"
mkdir -p ../_dist
rsync -ruv --exclude node_modules --exclude api_reference --exclude .venv --exclude .docusaurus . ../_dist
cd ../_dist
poetry run python scripts/model_feat_table.py docs/
cp ../cookbook/README.md src/pages/cookbook.mdx
mkdir -p docs/templates
cp ../templates/docs/INDEX.md docs/templates/index.md
poetry run python scripts/copy_templates.py docs/
wget -q https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O docs/langserve.md
wget -q https://raw.githubusercontent.com/langchain-ai/langgraph/main/README.md -O docs/langgraph.md
poetry run quarto render docs
poetry run python scripts/generate_api_reference_links.py --docs_dir docs
yarn
yarn start

View File

@@ -78,3 +78,6 @@ build: install-py-deps generate-files copy-infra quarto-render md-sync
start:
cd $(OUTPUT_DIR) && yarn && yarn start --port=$(PORT)
build-local:
./.local_build.sh