docs: work for freeze (#33239)

This commit is contained in:
Mason Daugherty
2025-10-02 20:01:26 -04:00
committed by GitHub
parent e16feb93b9
commit c972552c40
4 changed files with 12 additions and 5 deletions

View File

@@ -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

View File

@@ -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 }],

View File

@@ -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

View File

@@ -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": [