Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 14, 2023
1 parent 62c000e commit 4ff2817
Show file tree
Hide file tree
Showing 480 changed files with 472 additions and 354 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ tmp/
**/convex/.gitignore
**/convex/tsconfig.json

langchain/docs_dist/**/*
langchain/docs/dist/**/*
282 changes: 0 additions & 282 deletions api-docs/typedoc.json

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion api-docs/README.md β†’ docs/api_refs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Autogeneratd API documentation for LangChainJS
# Auto-generated API documentation for LangChainJS

Do not edit the contents of this directory directly.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

BASE_DIR="../langchain"
BASE_DIR="../../langchain"

# Create a directory to temp hold the files in src
# `docs_dist` is gitignored by default.
mkdir -p "$BASE_DIR/docs_dist/src"
mkdir -p "$BASE_DIR/docs/dist"

# Copy the contents of src to docs_dist/src
cp -r "$BASE_DIR/src/." "$BASE_DIR/docs_dist/src/"
# Copy the contents of src to docs/dist
cp -r "$BASE_DIR/src/." "$BASE_DIR/docs/dist/"

# This command will add `@ignore` to JSDoc comments
# for properties which should be ignored.
Expand All @@ -19,5 +19,5 @@ yarn typedoc
# Remove the current contents of langchain/src
rm -rf "$BASE_DIR/src/*"

# Copy the unedited contents from docs_dist/src to langchain/src
cp -r "$BASE_DIR/docs_dist/src/." "$BASE_DIR/src/"
# Copy the unedited contents from docs/dist to langchain/src
cp -r "$BASE_DIR/docs/dist/." "$BASE_DIR/src/"
File renamed without changes.
8 changes: 4 additions & 4 deletions api-docs/package.json β†’ docs/api_refs/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "api-docs",
"name": "api_refs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"typedoc": "npx typedoc --options typedoc.json",
"gen:typedoc": "bash ./generate_typedoc.sh",
"add-ignore-comments": "cd ../langchain && node scripts/ignore-class-properties.js",
"build": "yarn gen:typedoc && next build",
"build:typedoc": "bash ./generate_typedoc.sh",
"add-ignore-comments": "cd ../../langchain && node scripts/build-for-api-ref-docs.js",
"build": "yarn build:typedoc && next build",
"start": "next start",
"lint": "next lint"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 4ff2817

Please sign in to comment.