From c972552c401ffb415080baadbbace192f7372944 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 2 Oct 2025 20:01:26 -0400 Subject: [PATCH] docs: work for freeze (#33239) --- docs/README.md | 2 +- docs/docusaurus.config.js | 2 +- docs/ignore-step.sh | 5 ++--- docs/vercel.json | 8 ++++++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1b8ce46e863..9b0009637bd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -34,7 +34,7 @@ Currently, the build process roughly follows these steps: The docs site is served by Vercel. The Vercel deployment process copies the HTML files from the `langchain-api-docs-html` repository and deploys them to the live - site. Deployments are triggered on each new commit pushed to `master`. + site. Deployments are triggered on each new commit pushed to `v0.3`. #### Build Technical Details diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 1d64b8541d9..e6740c21e1e 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -87,7 +87,7 @@ const config = { ({ docs: { editUrl: - "https://github.com/langchain-ai/langchain/edit/master/docs/", + "https://github.com/langchain-ai/langchain/edit/v0.3/docs/", sidebarPath: require.resolve("./sidebars.js"), remarkPlugins: [ [require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }], diff --git a/docs/ignore-step.sh b/docs/ignore-step.sh index 5e075196bf5..60edc1ce201 100755 --- a/docs/ignore-step.sh +++ b/docs/ignore-step.sh @@ -16,14 +16,13 @@ fi if { \ [ "$VERCEL_ENV" == "production" ] || \ - [ "$VERCEL_GIT_COMMIT_REF" == "master" ] || \ [ "$VERCEL_GIT_COMMIT_REF" == "v0.1" ] || \ [ "$VERCEL_GIT_COMMIT_REF" == "v0.2" ] || \ [ "$VERCEL_GIT_COMMIT_REF" == "v0.3rc" ]; \ } && [ "$VERCEL_GIT_REPO_OWNER" == "langchain-ai" ] then - echo "✅ Production build - proceeding with build" - exit 1 + echo "✅ Production build - proceeding with build" + exit 1 fi diff --git a/docs/vercel.json b/docs/vercel.json index 0e8b11d0151..9a32f1a5220 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -23,6 +23,14 @@ { "source": "/v0.2/:path(.*/?)*", "destination": "https://langchain-v02.vercel.app/v0.2/:path*" + }, + { + "source": "/v0.3", + "destination": "https://langchain-v03.vercel.app/v0.3" + }, + { + "source": "/v0.3/:path(.*/?)*", + "destination": "https://langchain-v03.vercel.app/v0.3/:path*" } ], "redirects": [