Skip to content

Commit 05598d4

Browse files
committed
Add API Reference section to portal app
Introduces a new API Reference page at /reference, including a sidebar link in the header. Implements ModernApiReference with endpoint grouping, detailed documentation, and code examples. Adds supporting page and metadata for the new section.
1 parent aadaf20 commit 05598d4

File tree

3 files changed

+1140
-2
lines changed

3 files changed

+1140
-2
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ import {
2727
import { ThirdwebIcon } from "../icons/thirdweb";
2828

2929
const links = [
30+
{
31+
href: "/reference",
32+
name: "API Reference",
33+
},
3034
{
3135
href: "/wallets",
3236
name: "Wallets",
@@ -281,7 +285,7 @@ export function Header() {
281285
}}
282286
>
283287
<NavLink href={link.href} name={link.name} />
284-
{pathname.startsWith(link.href) && (
288+
{pathname?.startsWith(link.href) && (
285289
<div className="bg-violet-700 h-[2px] inset-x-0 rounded-full absolute -bottom-1" />
286290
)}
287291
</li>
@@ -526,7 +530,7 @@ function NavLink(props: {
526530
<Link
527531
className={clsx(
528532
"font-medium text-base transition-colors hover:text-foreground xl:text-sm",
529-
pathname.startsWith(props.href)
533+
pathname?.startsWith(props.href)
530534
? "text-foreground"
531535
: "text-muted-foreground",
532536
props.icon ? "flex flex-row gap-3" : "",

0 commit comments

Comments
 (0)