mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-18 10:43:36 +00:00
docs: build new api docs (#26951)
This commit is contained in:
parent
95a87291fd
commit
f7583194de
@ -82,9 +82,9 @@ vercel-build: install-vercel-deps build generate-references
|
|||||||
mv $(OUTPUT_NEW_DOCS_DIR) docs
|
mv $(OUTPUT_NEW_DOCS_DIR) docs
|
||||||
rm -rf build
|
rm -rf build
|
||||||
mkdir static/api_reference
|
mkdir static/api_reference
|
||||||
git clone --depth=1 https://github.com/baskaryan/langchain-api-docs-build.git
|
git clone --depth=1 https://github.com/langchain-ai/langchain-api-docs-html.git
|
||||||
mv langchain-api-docs-build/api_reference_build/html/* static/api_reference/
|
mv langchain-api-docs-html/api_reference_build/html/* static/api_reference/
|
||||||
rm -rf langchain-api-docs-build
|
rm -rf langchain-api-docs-html
|
||||||
NODE_OPTIONS="--max-old-space-size=5000" yarn run docusaurus build
|
NODE_OPTIONS="--max-old-space-size=5000" yarn run docusaurus build
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
|
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
|
||||||
"gen": "yarn gen:supabase",
|
"gen": "yarn gen:supabase",
|
||||||
"gen:supabase": "npx supabase gen types typescript --project-id 'xsqpnijvmbodcxyapnyq' --schema public > ./src/supabase.d.ts",
|
"gen:supabase": "npx supabase gen types typescript --project-id 'xsqpnijvmbodcxyapnyq' --schema public > ./src/supabase.d.ts",
|
||||||
"check-broken-links": "bash vercel_build.sh && node ./scripts/check-broken-links.js"
|
"check-broken-links": "make vercel-build && node ./scripts/check-broken-links.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "3.5.2",
|
"@docusaurus/core": "3.5.2",
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
make install-vercel-deps
|
|
||||||
|
|
||||||
make build
|
|
||||||
|
|
||||||
rm -rf docs
|
|
||||||
mv build/output-new/docs ./
|
|
||||||
|
|
||||||
mkdir static/api_reference
|
|
||||||
|
|
||||||
git clone --depth=1 https://github.com/baskaryan/langchain-api-docs-build.git
|
|
||||||
|
|
||||||
mv -r langchain-api-docs-build/api_reference_build/html/* static/api_reference/
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user