Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions apps/commons-docs/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ export default function Layout({ children }: { children: ReactNode }) {
{ text: 'Status', url: 'https://api.agentcommons.io/health', external: true },
]}
nav={{
// The same wordmark the commons-app dashboard sidebar shows when it is
// open, at the same height — one brand mark across both surfaces.
title: (
<span className="flex items-center gap-2">
<Image src="/ac-icon.svg" alt="" width={22} height={22} />
<span className="font-space text-sm font-bold tracking-tight">
Agent Commons
</span>
<span className="hidden rounded-full border border-fd-border px-1.5 py-px font-space text-[10px] font-medium uppercase tracking-widest text-fd-muted-foreground sm:inline">
Docs
</span>
</span>
<Image
src="/logo.jpg"
alt="Agent Commons"
width={131}
height={60}
priority
className="h-8 w-auto rounded-md object-contain"
/>
),
}}
sidebar={{ banner: null, footer: <SidebarFooter /> }}
Expand Down
6 changes: 2 additions & 4 deletions apps/commons-docs/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,11 @@ a[data-card="true"]:hover {
box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
}

/* The active page and the active heading share one accent, so the eye can
pair "where I am" in the sidebar with "where I am" in the table of
contents. */
/* The active page reads exactly as it does in the commons-app sidebar: a flat
muted fill, no coloured rule. */
#nd-sidebar a[data-active="true"] {
background-color: hsl(var(--fd-accent));
color: hsl(var(--fd-accent-foreground));
box-shadow: inset 2px 0 0 var(--brand-cyan);
}

#nd-toc a[data-active="true"],
Expand Down
Loading