Skip to content

Commit

Permalink
chore: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Aug 2, 2024
1 parent 7a2bab8 commit 26a69bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-scripts/src/cli/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function main() {
isCommunity,
});
break;
case 'retriever':
case "retriever":
await fillRetrieverIntegrationDocTemplate({
packageName,
moduleName,
Expand Down
6 changes: 4 additions & 2 deletions libs/langchain-scripts/src/cli/docs/retrievers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const INTEGRATIONS_DOCS_PATH = path.resolve(
"../../docs/core_docs/docs/integrations/retrievers"
);


type ExtraFields = {
hasCloudOffering: boolean;
canSelfHost: boolean;
Expand Down Expand Up @@ -66,7 +65,10 @@ export async function fillRetrieverIntegrationDocTemplate(fields: {
const docTemplate = (await fs.promises.readFile(TEMPLATE_PATH, "utf-8"))
.replaceAll(PACKAGE_NAME_PLACEHOLDER, fields.packageName)
.replaceAll(MODULE_NAME_PLACEHOLDER, fields.moduleName)
.replace(HAS_CLOUD_OFFERING_PLACEHOLDER, extraFields?.hasCloudOffering ? "βœ…" : "❌")
.replace(
HAS_CLOUD_OFFERING_PLACEHOLDER,
extraFields?.hasCloudOffering ? "βœ…" : "❌"
)
.replace(CAN_SELF_HOST_PLACEHOLDER, extraFields?.canSelfHost ? "βœ…" : "❌")
.replace(PY_SUPPORT_PLACEHOLDER, extraFields?.pySupport ? "βœ…" : "❌");

Expand Down

0 comments on commit 26a69bd

Please sign in to comment.