mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-25 01:16:55 +00:00
docs: work for freeze (#33239)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 }],
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user