Skip to content

Commit 01fa79d

Browse files
committed
fix(shell-docs): strip dangling MDX import tails from synced pages
18 per-framework MDX pages had the closing half of a multi-line import statement left at the top of the file (the orphaned "Symbol1, Symbol2, } from '...'" tail with the opening "import {" line missing). The current sync-docs-from-main import stripper handles multi-line imports correctly, so this was a historical artifact from an earlier stripper version that misparsed them — every affected file predates that fix. MDX treats the orphan as plain text, so pages rendered the identifier list and "} from ..." string as visible garbage at the top before the real content started. Strip the orphan blocks; future syncs won't re-introduce them.
1 parent 3d898db commit 01fa79d

18 files changed

Lines changed: 0 additions & 138 deletions

File tree

showcase/shell-docs/src/content/docs/integrations/a2a/quickstart.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
RepeatIcon,
15-
} from "lucide-react";
16-
178
<video
189
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
1910
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/adk/quickstart.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
RepeatIcon,
15-
} from "lucide-react";
16-
178
<video
189
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
1910
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/ag2/quickstart.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
RepeatIcon,
15-
ServerIcon,
16-
} from "lucide-react";
17-
188
<video
199
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
2010
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/ag2/readables.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ description: Share app specific context with your agent.
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
11-
} from "@/components/react/tailored-content.tsx";
12-
138
One of the most common use cases for CopilotKit is to register app state and context using `useAgentContext`.
149
This way, you can notify CopilotKit of what is going in your app in real time.
1510
Some examples might be: the current user, the current page, etc.

showcase/shell-docs/src/content/docs/integrations/agno/quickstart.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
} from "lucide-react";
15-
168
<video
179
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
1810
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/aws-strands/quickstart.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
} from "lucide-react";
15-
168
<video
179
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
1810
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/crewai-flows/quickstart.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ icon: "lucide/Play"
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
} from "@/components/react/tailored-content.tsx";
11-
UserIcon,
12-
PaintbrushIcon,
13-
WrenchIcon,
14-
RepeatIcon,
15-
ServerIcon,
16-
} from "lucide-react";
17-
188
<video
199
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/chat-example.mp4"
2010
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/crewai-flows/shared-state/predictive-state-updates.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ icon: "lucide/Podcast"
44
description: Stream in-progress agent state updates to the frontend.
55
---
66

7-
TailoredContent,
8-
TailoredContentOption,
9-
} from "@/components/react/tailored-content.tsx";
10-
117
<video
128
src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/intermediate-state-render.mp4"
139
className="rounded-lg shadow-xl"

showcase/shell-docs/src/content/docs/integrations/langgraph/agent-app-context.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ description: Share app specific context with your agent.
55
hideTOC: true
66
---
77

8-
TailoredContent,
9-
TailoredContentOption,
10-
11-
} from "@/components/react/tailored-content.tsx";
12-
138
One of the most common use cases for CopilotKit is to register app state and context using `useAgentContext`.
149
This way, you can notify CopilotKit of what is going on in your app in real time.
1510
Some examples might be: the current user, the current page, etc.

showcase/shell-docs/src/content/docs/integrations/langgraph/programmatic-control.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ icon: "lucide/SendHorizontal"
44
description: Chat with an agent using CopilotKit's UI components.
55
---
66

7-
MessageCircle,
8-
Database,
9-
Zap,
10-
AlertCircle,
11-
BookOpen,
12-
Play,
13-
Settings,
14-
} from "lucide-react"
15-
167
## Overview
178

189
The `useAgent` hook provides direct access to your LangGraph agent from any React component. It gives you real-time access to the agent's state, messages, execution status, and allows you to subscribe to custom events like interrupts.

0 commit comments

Comments
 (0)