Skip to content

Commit

Permalink
chore: publish v0.0.5 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivan-sean authored Feb 17, 2023
1 parent e5657ed commit d8de70e
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 523 deletions.
13 changes: 0 additions & 13 deletions docs/.stylelintrc.js

This file was deleted.

27 changes: 12 additions & 15 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,18 @@ const config = {
...args
}) {
const allInternal = [];
const filterInternal = (items) => {
return items.filter(item => {
const isInternal = item.label?.includes("internal");
if (isInternal) {
allInternal.push(item);
}
return !isInternal;
}).map((item) => {
const { items, ...rest } = item;
if (items && Array.isArray(items)) {
return { ...item, items: filterInternal(item.items) }
}
return item;
});
}
const filterInternal = (items) => items.filter(item => {
const isInternal = item.label?.includes("internal");
if (isInternal) {
allInternal.push(item);
}
return !isInternal;
}).map((item) => {
if (item.items && Array.isArray(item.items)) {
return { ...item, items: filterInternal(item.items) }
}
return item;
});
const sidebarItems = await defaultSidebarItemsGenerator(args);
const filtered = filterInternal(sidebarItems)
if (allInternal.length > 0) {
Expand Down
3 changes: 1 addition & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"ci": "yarn lint && yarn format:diff",
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
"lint": "eslint --cache \"**/*.js\"",
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\""
},
Expand All @@ -39,7 +39,6 @@
"openai": "^3.1.0",
"prettier": "^2.7.1",
"serpapi": "^1.1.1",
"stylelint": "^14.9.1",
"typedoc": "^0.23.25",
"typedoc-plugin-markdown": "^3.14.0",
"typedoc-plugin-missing-exports": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion langchain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langchain",
"version": "0.0.4",
"version": "0.0.5",
"description": "Typescript bindings for langchain",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
Loading

0 comments on commit d8de70e

Please sign in to comment.