Skip to content

Commit 0fd3ddf

Browse files
committed
refactor(docs): create migration-guides section, move migration pages from troubleshooting
- New docs/(root)/migration-guides/ section with migrate-to-v2, migrate-attachments, migrate-to-1.10.X, migrate-to-1.8.2 - Troubleshooting now only contains error-debugging, observability-connectors, common-issues - Update all @deprecated JSDoc URLs from /troubleshooting/ to /migration-guides/ - Update doc cross-links (multimodal-attachments page, snippet import) - Move snippet to snippets/shared/migration-guides/ - Set minimum version to v1.56.0 (was vX.Y.Z placeholder)
1 parent 89d39d6 commit 0fd3ddf

14 files changed

Lines changed: 27 additions & 19 deletions

File tree

docs/content/docs/(root)/meta.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"...backend",
2121
"---Premium Features---",
2222
"...premium",
23+
"---Migration Guides---",
24+
"...migration-guides",
2325
"---Troubleshooting---",
2426
"...troubleshooting",
2527
"---Other---",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Migration Guides",
3+
"icon": "lucide/RefreshCw",
4+
"pages": [
5+
"migrate-to-v2",
6+
"migrate-attachments",
7+
"migrate-to-1.10.X",
8+
"migrate-to-1.8.2"
9+
]
10+
}

docs/content/docs/(root)/troubleshooting/migrate-attachments.mdx renamed to docs/content/docs/(root)/migration-guides/migrate-attachments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ description: Migration guide for upgrading from imageUploadsEnabled to the new a
44
icon: "lucide/RefreshCw"
55
---
66

7-
import MigrateAttachments from "@/snippets/shared/troubleshooting/migrate-attachments.mdx";
7+
import MigrateAttachments from "@/snippets/shared/migration-guides/migrate-attachments.mdx";
88

99
<MigrateAttachments components={props.components} />

docs/content/docs/(root)/troubleshooting/migrate-to-1.10.X.mdx renamed to docs/content/docs/(root)/migration-guides/migrate-to-1.10.X.mdx

File renamed without changes.

docs/content/docs/(root)/troubleshooting/migrate-to-1.8.2.mdx renamed to docs/content/docs/(root)/migration-guides/migrate-to-1.8.2.mdx

File renamed without changes.

docs/content/docs/(root)/troubleshooting/migrate-to-v2.mdx renamed to docs/content/docs/(root)/migration-guides/migrate-to-v2.mdx

File renamed without changes.

docs/content/docs/(root)/multimodal-attachments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,5 @@ When a user attaches files and sends a message, CopilotKit:
179179
The attachments are part of the standard AG-UI `InputContent` schema, so any AG-UI-compatible agent (BuiltInAgent, LangGraph, custom) can receive them.
180180

181181
<Callout type="info">
182-
Migrating from the old `imageUploadsEnabled` prop? See the [migration guide](/troubleshooting/migrate-attachments) for a step-by-step walkthrough.
182+
Migrating from the old `imageUploadsEnabled` prop? See the [migration guide](/migration-guides/migrate-attachments) for a step-by-step walkthrough.
183183
</Callout>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"pages": [
3-
"migrate-to-v2",
4-
"migrate-attachments",
53
"error-debugging",
64
"observability-connectors",
7-
"common-issues",
8-
"migrate-to-1.10.X",
9-
"migrate-to-1.8.2"
5+
"common-issues"
106
]
117
}

docs/snippets/shared/troubleshooting/migrate-attachments.mdx renamed to docs/snippets/shared/migration-guides/migrate-attachments.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These deprecated APIs will continue to work until the next major version but wil
2424

2525
## Minimum Version
2626

27-
- **New `attachments` API:** available from vX.Y.Z
27+
- **New `attachments` API:** available from v1.56.0
2828
- **Deprecated APIs removed:** next major version
2929

3030
## Before / After

packages/react-ui/src/components/chat/AttachmentQueue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function AttachmentPreview({ attachment }: { attachment: Attachment }) {
119119
* @deprecated Use `AttachmentQueue` from `@copilotkit/react-ui` instead.
120120
* `ImageUploadQueue` only displayed image previews. `AttachmentQueue` supports
121121
* images, audio, video, and documents.
122-
* See https://docs.copilotkit.ai/troubleshooting/migrate-attachments
122+
* See https://docs.copilotkit.ai/migration-guides/migrate-attachments
123123
* @since 1.56.0
124124
*/
125125
export { AttachmentQueue as ImageUploadQueue };

0 commit comments

Comments
 (0)