Skip to content

Commit c972552

Browse files
authored
docs: work for freeze (#33239)
1 parent e16feb9 commit c972552

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Currently, the build process roughly follows these steps:
3434

3535
The docs site is served by Vercel. The Vercel deployment process copies the HTML
3636
files from the `langchain-api-docs-html` repository and deploys them to the live
37-
site. Deployments are triggered on each new commit pushed to `master`.
37+
site. Deployments are triggered on each new commit pushed to `v0.3`.
3838

3939
#### Build Technical Details
4040

docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const config = {
8787
({
8888
docs: {
8989
editUrl:
90-
"https://github.com/langchain-ai/langchain/edit/master/docs/",
90+
"https://github.com/langchain-ai/langchain/edit/v0.3/docs/",
9191
sidebarPath: require.resolve("./sidebars.js"),
9292
remarkPlugins: [
9393
[require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }],

docs/ignore-step.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ fi
1616

1717
if { \
1818
[ "$VERCEL_ENV" == "production" ] || \
19-
[ "$VERCEL_GIT_COMMIT_REF" == "master" ] || \
2019
[ "$VERCEL_GIT_COMMIT_REF" == "v0.1" ] || \
2120
[ "$VERCEL_GIT_COMMIT_REF" == "v0.2" ] || \
2221
[ "$VERCEL_GIT_COMMIT_REF" == "v0.3rc" ]; \
2322
} && [ "$VERCEL_GIT_REPO_OWNER" == "langchain-ai" ]
2423
then
25-
echo "✅ Production build - proceeding with build"
26-
exit 1
24+
echo "✅ Production build - proceeding with build"
25+
exit 1
2726
fi
2827

2928

docs/vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
{
2424
"source": "/v0.2/:path(.*/?)*",
2525
"destination": "https://langchain-v02.vercel.app/v0.2/:path*"
26+
},
27+
{
28+
"source": "/v0.3",
29+
"destination": "https://langchain-v03.vercel.app/v0.3"
30+
},
31+
{
32+
"source": "/v0.3/:path(.*/?)*",
33+
"destination": "https://langchain-v03.vercel.app/v0.3/:path*"
2634
}
2735
],
2836
"redirects": [

0 commit comments

Comments
 (0)