Skip to content

Commit b5bdb5c

Browse files
authored
Docs/add broken links check (CopilotKit#3122)
1 parent efc7116 commit b5bdb5c

48 files changed

Lines changed: 324 additions & 643 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/components/layout/integrations-sidebar.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { useState, useMemo } from 'react';
3+
import { useState, useMemo, useEffect } from 'react';
44
import { DocsLayoutProps } from 'fumadocs-ui/layouts/docs';
55
import Separator from '../ui/sidebar/separator';
66
import Page from '../ui/sidebar/page';
@@ -98,6 +98,14 @@ const IntegrationsSidebar = ({ pageTree }: { pageTree: DocsLayoutProps['tree'] }
9898
return integrationFolder?.children ?? [];
9999
}, [selectedIntegration, pageTree.children]);
100100

101+
// Dispatch pageTree update for OpenedFoldersProvider
102+
useEffect(() => {
103+
if (integrationPages.length > 0) {
104+
const event = new CustomEvent('pageTreeUpdate', { detail: integrationPages });
105+
window.dispatchEvent(event);
106+
}
107+
}, [integrationPages]);
108+
101109
return (
102110
<OpenedFoldersProvider>
103111
<aside

docs/components/layout/sidebar.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
22

3-
import { useState } from "react"
3+
import { useState, useEffect } from "react"
44
import { DocsLayoutProps } from "fumadocs-ui/layouts/docs"
55
import Separator from "../ui/sidebar/separator"
66
import Page from "../ui/sidebar/page"
@@ -36,6 +36,14 @@ const Sidebar = ({ pageTree, showIntegrationSelector = true }: { pageTree: DocsL
3636
const pages = pageTree.children
3737
const [selectedIntegration, setSelectedIntegration] = useState<Integration | null>(null)
3838

39+
// Dispatch pageTree update for OpenedFoldersProvider
40+
useEffect(() => {
41+
if (pages.length > 0) {
42+
const event = new CustomEvent('pageTreeUpdate', { detail: pages });
43+
window.dispatchEvent(event);
44+
}
45+
}, [pages]);
46+
3947
return (
4048
<OpenedFoldersProvider>
4149
<aside

docs/content/docs/(root)/custom-look-and-feel/built-in-ui-components.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/content/docs/(root)/custom-look-and-feel/index.mdx

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/content/docs/(root)/custom-look-and-feel/meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"title": "Custom Look and Feel",
33
"icon": "lucide/LayoutDashboard",
44
"pages": [
5-
"built-in-ui-components",
65
"customize-built-in-ui-components",
76
"bring-your-own-components",
87
"headless-ui",

docs/content/docs/(root)/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ npx copilotkit@latest init
258258
</div>
259259
</a>
260260
<a
261-
href="/custom-look-and-feel"
261+
href="/direct-to-llm/guides/custom-look-and-feel"
262262
className="border border-border rounded-lg p-6 hover:border-primary transition-colors no-underline group"
263263
>
264264
<div className="flex items-center gap-2 mb-2">

docs/content/docs/integrations/a2a/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Now that you have your basic agent setup, explore these advanced features:
123123
<Card
124124
title="Add some generative UI"
125125
description="Render declarative UI components with A2UI."
126-
href="/a2a/generative-ui"
126+
href="/a2a/generative-ui/declarative-a2ui"
127127
icon={<PaintbrushIcon />}
128128
/>
129129
</Cards>

docs/content/docs/integrations/adk/custom-look-and-feel/index.mdx

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/content/docs/integrations/ag2/concepts/agentic-copilots.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Want to get started? You have some options!
6666
<Card
6767
title="Build your first CoAgent"
6868
description="Follow a step-by-step tutorial to build a travel app supercharged with CoAgents."
69-
href="/ag2/quickstart/ag2"
69+
href="/ag2/quickstart"
7070
icon={<RocketIcon />}
7171
/>
7272
<Card

docs/content/docs/integrations/ag2/custom-look-and-feel/built-in-ui-components.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)