Skip to content

Commit

Permalink
docs[patch]: Add yarn clean script to docs & run in build (#3646)
Browse files Browse the repository at this point in the history
* docs[patch]: Add yarn clean script to docs & run in build

* cr
  • Loading branch information
bracesproul authored Dec 13, 2023
1 parent 06a3911 commit baced2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/api_refs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"dev": "next dev -p 3001",
"typedoc": "npx typedoc --options typedoc.json",
"build:scripts": "yarn typedoc && node ./scripts/update-typedoc-css.js",
"build": "yarn run build:deps && yarn build:scripts && next build",
"build:vercel": "yarn run build:deps --force && yarn build:scripts && next build",
"build": "yarn clean && yarn run build:deps && yarn build:scripts && next build",
"build:vercel": "yarn clean && yarn run build:deps --force && yarn build:scripts && next build",
"build:deps": "yarn run turbo:command build --filter=@langchain/core --filter=@langchain/anthropic --filter=@langchain/openai --filter=@langchain/community --filter=langchain --concurrency=1",
"start": "yarn build && next start -p 3001",
"lint": "next lint"
"lint": "next lint",
"clean": "rm -rf .next .turbo public/ && mkdir public"
},
"dependencies": {
"next": "14.0.1",
Expand Down
7 changes: 4 additions & 3 deletions docs/core_docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "yarn build:typedoc && rimraf ./docs/api && NODE_OPTIONS=--max-old-space-size=7168 docusaurus start",
"build": "yarn build:typedoc && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:vercel": "yarn build:typedoc:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build": "yarn clean && yarn build:typedoc && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:vercel": "yarn clean && yarn build:typedoc:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:typedoc": "yarn run turbo:command build --filter=api_refs",
"build:typedoc:vercel": "yarn run turbo:command build:vercel --filter=api_refs",
"swizzle": "docusaurus swizzle",
Expand All @@ -19,7 +19,8 @@
"lint:fix": "yarn lint --fix",
"precommit": "lint-staged",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\""
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
"clean": "rm -rf .docusaurus/ .turbo/ .build/"
},
"dependencies": {
"@docusaurus/core": "2.4.3",
Expand Down

2 comments on commit baced2a

@vercel
Copy link

@vercel vercel bot commented on baced2a Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

langchainjs-docs – ./docs/core_docs/

langchainjs-docs-langchain.vercel.app
langchainjs-docs-git-main-langchain.vercel.app
langchainjs-docs-ruddy.vercel.app
js.langchain.com

@vercel
Copy link

@vercel vercel bot commented on baced2a Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.