Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
chore: remove unused breadcrumb-schema component
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 30, 2026 at 16:16 UTC
8248544506cdcfe5f2e9847c7fd66b5a83fc4b38
1 file changed
-70
docs/components/breadcrumb-schema.tsx
deleted
-70
@@ -1,70 +0,0 @@
1
-const BASE_URL = 'https://docs.composio.dev';
2
-
3
-interface BreadcrumbItem {
4
- name: string;
5
- url: string;
6
-}
7
-
8
-interface BreadcrumbSchemaProps {
9
- items: BreadcrumbItem[];
10
-}
11
-
12
-/**
13
- * Generates JSON-LD BreadcrumbList schema for SEO.
14
- * Helps Google display breadcrumb trails in search results.
15
- *
16
- * @see https://developers.google.com/search/docs/appearance/structured-data/breadcrumb
17
- */
18
-export function BreadcrumbSchema({ items }: BreadcrumbSchemaProps) {
19
- if (items.length === 0) return null;
20
-
21
- const schema = {
22
- '@context': 'https://schema.org',
23
- '@type': 'BreadcrumbList',
24
- itemListElement: items.map((item, index) => ({
25
- '@type': 'ListItem',
26
- position: index + 1,
27
- name: item.name,
28
- item: `${BASE_URL}${item.url}`,
29
- })),
30
- };
31
-
32
- return (
33
- <script
34
- type="application/ld+json"
35
- dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
36
- />
37
- );
38
-}
39
-
40
-/**
41
- * Builds breadcrumb items from a URL path and page title.
42
- *
43
- * Example: buildBreadcrumbs('/docs/auth/oauth', 'OAuth Guide')
44
- * Returns: [
45
- * { name: 'Docs', url: '/docs' },
46
- * { name: 'Auth', url: '/docs/auth' },
47
- * { name: 'OAuth Guide', url: '/docs/auth/oauth' }
48
- * ]
49
- */
50
-export function buildBreadcrumbs(url: string, pageTitle: string): BreadcrumbItem[] {
51
- const segments = url.split('/').filter(Boolean);
52
- const items: BreadcrumbItem[] = [];
53
-
54
- // Build intermediate breadcrumbs from URL segments
55
- let currentPath = '';
56
- for (let i = 0; i < segments.length - 1; i++) {
57
- currentPath += `/${segments[i]}`;
58
- // Capitalize and format segment name (e.g., 'auth-configuration' -> 'Auth Configuration')
59
- const name = segments[i]
60
- .split('-')
61
- .map(word => word.charAt(0).toUpperCase() + word.slice(1))
62
- .join(' ');
63
- items.push({ name, url: currentPath });
64
- }
65
-
66
- // Add final page with actual title
67
- items.push({ name: pageTitle, url });
68
-
69
- return items;
70
-}