Skip to content

Commit 51ac503

Browse files
committed
biome format
1 parent 0f2b040 commit 51ac503

File tree

4 files changed

+33
-49
lines changed

4 files changed

+33
-49
lines changed
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
2-
"title": "Comparisons",
3-
"icon": "LuGitCompareArrows",
4-
"pages": [
5-
"n8n",
6-
"crewai",
7-
"openai-agent-kit",
8-
"lindy",
9-
"..."
10-
]
11-
}
2+
"title": "Comparisons",
3+
"icon": "LuGitCompareArrows",
4+
"pages": ["n8n", "crewai", "openai-agent-kit", "lindy", "..."]
5+
}

agents-docs/src/components/brand-icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,4 @@ export const Lindy = () => (
486486
d="m4.202 8.905 3.601-3.601a.35.35 0 0 0 0-.491l-1.56-1.561a.35.35 0 0 0-.492 0L.101 8.905a.35.35 0 0 0 0 .491l5.653 5.656a.35.35 0 0 0 .491 0l1.561-1.56a.35.35 0 0 0 0-.492L4.202 9.396a.35.35 0 0 1 0-.49"
487487
></path>
488488
</svg>
489-
);
489+
);

agents-docs/src/components/comparisons-table.tsx

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { ReactElement } from 'react';
21
import { toJsxRuntime } from 'hast-util-to-jsx-runtime';
2+
import type { ReactElement } from 'react';
33
import { Fragment, jsx, jsxs } from 'react/jsx-runtime';
44
import { renderMarkdownToHast } from '@/lib/markdown';
55

@@ -77,11 +77,7 @@ async function renderCell(
7777

7878
// If there's a note, wrap in a tooltip
7979
if (noteElement) {
80-
return (
81-
<abbr title={note}>
82-
{displayValue}
83-
</abbr>
84-
);
80+
return <abbr title={note}>{displayValue}</abbr>;
8581
}
8682

8783
return <span>{displayValue}</span>;
@@ -124,9 +120,7 @@ export async function ComparisonTable({
124120

125121
// Filter sections if sectionTitle is provided
126122
const sectionsToRender = sectionTitle
127-
? (comparison.comparison?.sections || []).filter(
128-
(section) => section.title === sectionTitle
129-
)
123+
? (comparison.comparison?.sections || []).filter((section) => section.title === sectionTitle)
130124
: comparison.comparison?.sections || [];
131125

132126
if (sectionTitle && sectionsToRender.length === 0) {
@@ -157,31 +151,29 @@ export async function ComparisonTable({
157151
if (sectionTitle) {
158152
const section = processedSections[0];
159153
return (
160-
<table className="w-full border-collapse rounded-md">
161-
<thead>
162-
<tr className="border-b border-fd-border bg-fd-muted/50">
163-
<th className="p-4 text-left font-semibold">Feature</th>
164-
<th className="p-4 text-center font-semibold w-32">Inkeep</th>
165-
<th className="p-4 text-center font-semibold w-32">
166-
{comparison.competitor}
167-
</th>
154+
<table className="w-full border-collapse rounded-md">
155+
<thead>
156+
<tr className="border-b border-fd-border bg-fd-muted/50">
157+
<th className="p-4 text-left font-semibold">Feature</th>
158+
<th className="p-4 text-center font-semibold w-32">Inkeep</th>
159+
<th className="p-4 text-center font-semibold w-32">{comparison.competitor}</th>
160+
</tr>
161+
</thead>
162+
<tbody>
163+
{section.processedRows.map((row, idx) => (
164+
<tr
165+
key={idx}
166+
className={`border-b border-fd-border last:border-b-0 hover:bg-fd-muted/30 transition-colors ${
167+
idx % 2 === 0 ? 'bg-white dark:bg-transparent' : 'bg-fd-muted/10'
168+
}`}
169+
>
170+
<td className="p-4 font-medium">{row.feature}</td>
171+
<td className="p-4 text-center align-top">{row.inkeepCell}</td>
172+
<td className="p-4 text-center align-top">{row.competitorCell}</td>
168173
</tr>
169-
</thead>
170-
<tbody>
171-
{section.processedRows.map((row, idx) => (
172-
<tr
173-
key={idx}
174-
className={`border-b border-fd-border last:border-b-0 hover:bg-fd-muted/30 transition-colors ${
175-
idx % 2 === 0 ? 'bg-white dark:bg-transparent' : 'bg-fd-muted/10'
176-
}`}
177-
>
178-
<td className="p-4 font-medium">{row.feature}</td>
179-
<td className="p-4 text-center align-top">{row.inkeepCell}</td>
180-
<td className="p-4 text-center align-top">{row.competitorCell}</td>
181-
</tr>
182-
))}
183-
</tbody>
184-
</table>
174+
))}
175+
</tbody>
176+
</table>
185177
);
186178
}
187179

@@ -197,9 +189,7 @@ export async function ComparisonTable({
197189
<tr className="border-b border-fd-border bg-fd-muted/50">
198190
<th className="p-4 text-left font-semibold">Feature</th>
199191
<th className="p-4 text-center font-semibold w-32">Inkeep</th>
200-
<th className="p-4 text-center font-semibold w-32">
201-
{comparison.competitor}
202-
</th>
192+
<th className="p-4 text-center font-semibold w-32">{comparison.competitor}</th>
203193
</tr>
204194
</thead>
205195
<tbody>
@@ -222,4 +212,4 @@ export async function ComparisonTable({
222212
))}
223213
</div>
224214
);
225-
}
215+
}

agents-docs/src/mdx-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { createAPIPage } from 'fumadocs-openapi/ui';
2525
import { createGenerator } from 'fumadocs-typescript';
2626
import defaultMdxComponents from 'fumadocs-ui/mdx';
2727
import type { MDXComponents } from 'mdx/types';
28+
import { ComparisonTable } from '@/components/comparisons-table';
2829
import { AutoTypeTable } from '@/components/mdx/auto-type-table';
2930
import { Card } from '@/components/mdx/card'; // Add this line
3031
import { openapi } from '@/lib/openapi';
31-
import { ComparisonTable } from '@/components/comparisons-table';
3232

3333
// Snippet component for MDX snippets
3434
// This is a placeholder that should be replaced by remark-mdx-snippets plugin

0 commit comments

Comments
 (0)