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: 3 additions & 16 deletions apps/docs/app/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,14 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
}
const isOpenAPI = '_openapi' in data && data._openapi != null
const isApiReference = slug?.some((s) => s === 'api-reference') ?? false
// Academy lessons are video-first: drop the "On this page" TOC and go full
// width so the lesson hero/video gets the room (chapters live in-page instead).
const isAcademy = slug?.[0] === 'academy'
const isCli = slug?.[0] === 'cli'
const isMcp = slug?.[0] === 'mcp'

const rawNeighbours = findNeighbour(source.pageTree, page.url)
// Academy, API Reference, CLI, and MCP are self-contained sections; keep prev/next
// API Reference, CLI, and MCP are self-contained sections; keep prev/next
// inside the section instead of spilling into the main documentation tree.
// Match both the section's pages (`/<slug>/...`) and its index (`/<slug>`).
const sectionSlug = isApiReference
? 'api-reference'
: isAcademy
? 'academy'
: isCli
? 'cli'
: isMcp
? 'mcp'
: null
const sectionSlug = isApiReference ? 'api-reference' : isCli ? 'cli' : isMcp ? 'mcp' : null
const inSection = (url?: string) =>
url != null && (url.includes(`/${sectionSlug}/`) || url.endsWith(`/${sectionSlug}`))
const neighbours = sectionSlug
Expand Down Expand Up @@ -254,18 +243,16 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
role='main'
tabIndex={-1}
toc={data.toc.filter(isContentHeading)}
full={data.full || isAcademy}
full={data.full}
breadcrumb={{
enabled: false,
}}
tableOfContent={{
style: 'clerk',
enabled: !isAcademy,
single: false,
}}
tableOfContentPopover={{
style: 'clerk',
enabled: !isAcademy,
}}
footer={{
enabled: true,
Expand Down
1 change: 0 additions & 1 deletion apps/docs/components/docs-layout/docs-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export function DocsSidebar() {
['API Reference', '/api-reference/getting-started'],
['CLI', '/cli'],
['MCP', '/mcp/overview'],
['Academy', '/academy'],
].map(([label, href]) => (
<ChipLink key={href} href={href} onNavigate={() => setOpen(false)}>
{label}
Expand Down
3 changes: 1 addition & 2 deletions apps/docs/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SIM_SITE_URL } from '@/lib/urls'
* footer (`apps/sim/app/(landing)/components/footer`), ported here so both
* apps share one consistent footer. Links that live on sim.ai are absolute
* (docs.sim.ai is a different origin); links that live on docs.sim.ai itself
* (Academy, API Reference, blocks, integrations guides, …) stay relative.
* (API Reference, blocks, integrations guides, …) stay relative.
*/

const LINK_CLASS =
Expand All @@ -34,7 +34,6 @@ const PRODUCT_LINKS: FooterItem[] = [

const RESOURCES_LINKS: FooterItem[] = [
{ label: 'Blog', href: `${SIM_SITE_URL}/blog`, external: true },
{ label: 'Academy', href: '/academy' },
{ label: 'Compare', href: `${SIM_SITE_URL}/comparison`, external: true },
{ label: 'Careers', href: `${SIM_SITE_URL}/careers`, external: true },
{ label: 'Changelog', href: `${SIM_SITE_URL}/changelog`, external: true },
Expand Down
10 changes: 2 additions & 8 deletions apps/docs/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { cn } from '@/lib/utils'

/**
* Sections that own a tab, in reading order: the main docs, then the three
* reference surfaces, then Academy. `Documentation` matches by exclusion, so
* reference surfaces. `Documentation` matches by exclusion, so
* every section listed here is one it must not claim.
*/
const SECTION_TABS = ['api-reference', 'academy', 'cli', 'mcp'] as const
const SECTION_TABS = ['api-reference', 'cli', 'mcp'] as const

/**
* Whether a pathname is inside a section, matched on its first path segment.
Expand Down Expand Up @@ -51,12 +51,6 @@ const NAV_TABS = [
match: (p: string) => isInSection(p, 'mcp'),
external: false,
},
{
label: 'Academy',
href: '/academy',
match: (p: string) => isInSection(p, 'academy'),
external: false,
},
] as const

export function Navbar() {
Expand Down
73 changes: 0 additions & 73 deletions apps/docs/components/ui/video-chapters.tsx

This file was deleted.

221 changes: 0 additions & 221 deletions apps/docs/components/ui/video-placeholder.tsx

This file was deleted.

Loading
Loading