Skip to content

Commit 589b770

Browse files
committed
fix: fix page sizing, links, cookbook side bar
1 parent d4c713d commit 589b770

46 files changed

Lines changed: 204 additions & 122 deletions

Some content is hidden

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

app/(home)/integrations/_pages/page.en.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ export default function IntegrationsPage() {
4646
/>
4747
<IndexCard
4848
icon={<API />}
49-
href="/integrations/magnitude/overview"
49+
href="/integrations/magnitude/quickstart"
5050
title="Magnitude"
5151
tag="Browser Agent"
5252
description="Use Magnitude with Steel Browser."
5353
/>
5454
<IndexCard
5555
icon={<API />}
56-
href="/integrations/notte/overview"
56+
href="/integrations/notte/quickstart"
5757
title="Notte"
5858
tag="Browser Agent"
5959
description="Use Notte with Steel Browser."

app/(home)/overview/_pages/page.en.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Image from "next/image";
1313

1414
export default function HomePage() {
1515
return (
16-
<main className="space-y-10">
16+
<main className="space-y-10 max-w-[1024px] w-full mx-auto ">
1717
<div className="px-4 md:px-[var(--nav-offset)] py-[56px]">
1818
<div className="space-y-10">
1919
<div className="space-y-1">

app/favicon.ico

2.07 KB
Binary file not shown.

app/global.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,19 @@
257257
color: #ffffff;
258258
}
259259

260-
span {
260+
h1 {
261+
font-weight: 500;
262+
font-size: 32px;
263+
}
264+
h2 {
265+
font-weight: 600;
266+
font-size: 24px;
267+
}
268+
h3 {
269+
font-weight: 600;
270+
font-size: 20px;
271+
}
272+
h2 span {
261273
font-family: var(--font-inter), sans-serif;
262274
}
263275

app/layout.config.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export const baseOptions: BaseLayoutProps = {
3535
text: "Playground",
3636
url: "/playground",
3737
},
38+
{
39+
text: "API Reference",
40+
url: "/api-reference",
41+
},
3842
// {
3943
// type: "menu",
4044
// text: "Libraries & SDKs",

app/layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import './global.css';
2-
import { RootProvider } from 'fumadocs-ui/provider';
3-
import type { ReactNode } from 'react';
4-
import { jetBrainsMono, inter } from '@/fonts';
5-
import { KeyboardShortcutsProvider } from '@/hooks/use-keyboard-shortcuts';
6-
import { QueryProvider } from '@/providers/query-provider';
1+
import "./global.css";
2+
import { RootProvider } from "fumadocs-ui/provider";
3+
import type { ReactNode } from "react";
4+
import { jetBrainsMono, inter } from "@/fonts";
5+
import { KeyboardShortcutsProvider } from "@/hooks/use-keyboard-shortcuts";
6+
import { QueryProvider } from "@/providers/query-provider";
77

88
export default function RootLayout({ children }: { children: ReactNode }) {
99
return (

components/layout/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ export type {
22
SectionContentProps,
33
SectionHeaderProps,
44
SectionProps,
5-
} from './section';
6-
export { Section, SectionContent, SectionHeader } from './section';
5+
} from "./section";
6+
export { Section, SectionContent, SectionHeader } from "./section";
7+
export { ExternalNavLink } from "./external-nav-link";

components/layouts/docs.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,17 +466,23 @@ export function PageBadges({ item }: { item: PageTree.Node }) {
466466
const badges: React.ReactNode[] = [];
467467

468468
const isNew = (item as any).data?.isNew;
469+
const isLink = (item as any).data?.isLink;
469470

470471
if (isNew) {
471472
badges.push(
472473
<span
473474
key="new"
474-
className="font-regular text-[10px] px-1 rounded uppercase bg-orange-500 dark:bg-brand-orange text-neutral-950 border-none"
475+
className="font-regular text-[10px] px-1 rounded uppercase bg-yellow-500 dark:bg-yellow-300 text-neutral-950 border-none"
475476
>
476477
New
477478
</span>,
478479
);
479480
}
481+
if (isLink) {
482+
badges.push(
483+
<ArrowUpRight className="w-3.5 h-3.5 translate-y-0.5 group-hover:translate-y-0 transition-transform duration-200 bg-gray-600" />,
484+
);
485+
}
480486

481487
const openapi = (item as any).data?.openapi;
482488
const operations = openapi?.operations || [];

0 commit comments

Comments
 (0)