Skip to content

Commit 51a7466

Browse files
committed
Adds escape hatch
1 parent 7dd9f38 commit 51a7466

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

docs/core_docs/docs/integrations/chat/cloudflare_workersai.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@
8585
"outputs": [],
8686
"source": [
8787
"// @lc-docs-hide-cell\n",
88-
"// @ts-nocheck\n",
8988
"\n",
89+
"// @ts-expect-error Deno is not recognized\n",
9090
"const CLOUDFLARE_ACCOUNT_ID = Deno.env.get(\"CLOUDFLARE_ACCOUNT_ID\");\n",
91+
"// @ts-expect-error Deno is not recognized\n",
9192
"const CLOUDFLARE_API_TOKEN = Deno.env.get(\"CLOUDFLARE_API_TOKEN\");"
9293
]
9394
},

docs/core_docs/docs/integrations/llms/cloudflare_workersai.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@
7373
"outputs": [],
7474
"source": [
7575
"// @lc-docs-hide-cell\n",
76-
"// @ts-nocheck\n",
7776
"\n",
77+
"// @ts-expect-error Deno is not recognized\n",
7878
"const CLOUDFLARE_ACCOUNT_ID = Deno.env.get(\"CLOUDFLARE_ACCOUNT_ID\");\n",
79+
"// @ts-expect-error Deno is not recognized\n",
7980
"const CLOUDFLARE_API_TOKEN = Deno.env.get(\"CLOUDFLARE_API_TOKEN\");"
8081
]
8182
},

docs/core_docs/docs/integrations/text_embedding/cloudflare_ai.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"source": [
1212
"---\n",
1313
"sidebar_label: Cloudflare Workers AI\n",
14+
"lc_docs_skip_validation: true\n",
1415
"---"
1516
]
1617
},

docs/core_docs/scripts/validate_notebook.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { Project } from "ts-morph";
44

55
export function extract(filepath: string) {
66
const cells = JSON.parse(fs.readFileSync(filepath).toString()).cells;
7+
if (cells[0]?.source.includes("lc_docs_skip_validation: true\n")) {
8+
return "";
9+
}
710
const project = new Project({ useInMemoryFileSystem: true });
811
const sourceFile = project.createSourceFile("temp.ts", "");
912

0 commit comments

Comments
 (0)