Skip to content

Commit 55e72ee

Browse files
style: auto-fix formatting
1 parent c30613c commit 55e72ee

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

scripts/docs/lib/files.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
5353
/* Classes */
5454
{
5555
sourcePath: "packages/react-core/src/lib/copilot-task.ts",
56-
destinationPath: "showcase/shell-docs/src/content/reference/v1/classes/CopilotTask.mdx",
56+
destinationPath:
57+
"showcase/shell-docs/src/content/reference/v1/classes/CopilotTask.mdx",
5758
className: "CopilotTask",
5859
description:
5960
"CopilotTask is used to execute one-off tasks, for example on button click.",
@@ -78,7 +79,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
7879
{
7980
sourcePath:
8081
"packages/react-core/src/components/copilot-provider/copilotkit.tsx",
81-
destinationPath: "showcase/shell-docs/src/content/reference/v1/components/CopilotKit.mdx",
82+
destinationPath:
83+
"showcase/shell-docs/src/content/reference/v1/components/CopilotKit.mdx",
8284
component: "CopilotKit",
8385
description:
8486
"The CopilotKit provider component, wrapping your application.",
@@ -111,7 +113,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
111113
/* Hooks */
112114
{
113115
sourcePath: "packages/react-core/src/hooks/use-copilot-chat.ts",
114-
destinationPath: "showcase/shell-docs/src/content/reference/v1/hooks/useCopilotChat.mdx",
116+
destinationPath:
117+
"showcase/shell-docs/src/content/reference/v1/hooks/useCopilotChat.mdx",
115118
hook: "useCopilotChat",
116119
},
117120
{
@@ -146,7 +149,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
146149
},
147150
{
148151
sourcePath: "packages/react-core/src/hooks/use-coagent.ts",
149-
destinationPath: "showcase/shell-docs/src/content/reference/v1/hooks/useCoAgent.mdx",
152+
destinationPath:
153+
"showcase/shell-docs/src/content/reference/v1/hooks/useCoAgent.mdx",
150154
hook: "useCoAgent",
151155
description:
152156
"The useCoAgent hook allows you to share state bidirectionally between your application and the agent.",
@@ -164,7 +168,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
164168

165169
{
166170
sourcePath: "sdk-python/copilotkit/langgraph.py",
167-
destinationPath: "showcase/shell-docs/src/content/reference/sdk/python/LangGraph.mdx",
171+
destinationPath:
172+
"showcase/shell-docs/src/content/reference/sdk/python/LangGraph.mdx",
168173
title: "LangGraph SDK",
169174
description:
170175
"The CopilotKit LangGraph SDK for Python allows you to build and run LangGraph workflows with CopilotKit.",
@@ -178,7 +183,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
178183
},
179184
{
180185
sourcePath: "sdk-python/copilotkit/crewai/crewai_sdk.py",
181-
destinationPath: "showcase/shell-docs/src/content/reference/sdk/python/CrewAI.mdx",
186+
destinationPath:
187+
"showcase/shell-docs/src/content/reference/sdk/python/CrewAI.mdx",
182188
title: "CrewAI SDK",
183189
description:
184190
"The CopilotKit CrewAI SDK for Python allows you to build and run CrewAI agents with CopilotKit.",
@@ -203,7 +209,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
203209
},
204210
{
205211
sourcePath: "sdk-python/copilotkit/crewai/crewai_agent.py",
206-
destinationPath: "showcase/shell-docs/src/content/reference/sdk/python/CrewAIAgent.mdx",
212+
destinationPath:
213+
"showcase/shell-docs/src/content/reference/sdk/python/CrewAIAgent.mdx",
207214
title: "CrewAIAgent",
208215
description:
209216
"CrewAIAgent lets you define your agent for use with CopilotKit.",
@@ -220,7 +227,8 @@ export const REFERENCE_DOCS: ReferenceDocConfiguration[] = [
220227
},
221228
{
222229
sourcePath: "packages/sdk-js/src/langgraph/index.ts",
223-
destinationPath: "showcase/shell-docs/src/content/reference/sdk/js/LangGraph.mdx",
230+
destinationPath:
231+
"showcase/shell-docs/src/content/reference/sdk/js/LangGraph.mdx",
224232
title: "LangGraph SDK",
225233
description:
226234
"The CopilotKit LangGraph SDK for JavaScript allows you to build and run LangGraph workflows with CopilotKit.",

scripts/docs/lib/reference-doc.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ export class ReferenceDoc {
3434
// Ensure parent directory exists so retargeting to a fresh tree
3535
// (e.g. shell-docs) doesn't require manual mkdir.
3636
// eslint-disable-next-line @typescript-eslint/no-explicit-any
37-
(fs as any).mkdirSync(
38-
dest.split("/").slice(0, -1).join("/"),
39-
{ recursive: true },
40-
);
37+
(fs as any).mkdirSync(dest.split("/").slice(0, -1).join("/"), {
38+
recursive: true,
39+
});
4140
fs.writeFileSync(dest, generatedDocumentation);
4241
console.log(
4342
`Successfully autogenerated ${dest} from ${this.referenceDoc.sourcePath}`,

0 commit comments

Comments
 (0)