Skip to content

Commit 4d2fa26

Browse files
authored
chore(docs): remove the academy (#8995)
1 parent 5c2bf5c commit 4d2fa26

65 files changed

Lines changed: 19 additions & 4985 deletions

Some content is hidden

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

‎apps/docs/app/[[...slug]]/page.tsx‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,14 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
122122
}
123123
const isOpenAPI = '_openapi' in data && data._openapi != null
124124
const isApiReference = slug?.some((s) => s === 'api-reference') ?? false
125-
// Academy lessons are video-first: drop the "On this page" TOC and go full
126-
// width so the lesson hero/video gets the room (chapters live in-page instead).
127-
const isAcademy = slug?.[0] === 'academy'
128125
const isCli = slug?.[0] === 'cli'
129126
const isMcp = slug?.[0] === 'mcp'
130127

131128
const rawNeighbours = findNeighbour(source.pageTree, page.url)
132-
// Academy, API Reference, CLI, and MCP are self-contained sections; keep prev/next
129+
// API Reference, CLI, and MCP are self-contained sections; keep prev/next
133130
// inside the section instead of spilling into the main documentation tree.
134131
// Match both the section's pages (`/<slug>/...`) and its index (`/<slug>`).
135-
const sectionSlug = isApiReference
136-
? 'api-reference'
137-
: isAcademy
138-
? 'academy'
139-
: isCli
140-
? 'cli'
141-
: isMcp
142-
? 'mcp'
143-
: null
132+
const sectionSlug = isApiReference ? 'api-reference' : isCli ? 'cli' : isMcp ? 'mcp' : null
144133
const inSection = (url?: string) =>
145134
url != null && (url.includes(`/${sectionSlug}/`) || url.endsWith(`/${sectionSlug}`))
146135
const neighbours = sectionSlug
@@ -254,18 +243,16 @@ export default async function Page(props: { params: Promise<{ slug?: string[] }>
254243
role='main'
255244
tabIndex={-1}
256245
toc={data.toc.filter(isContentHeading)}
257-
full={data.full || isAcademy}
246+
full={data.full}
258247
breadcrumb={{
259248
enabled: false,
260249
}}
261250
tableOfContent={{
262251
style: 'clerk',
263-
enabled: !isAcademy,
264252
single: false,
265253
}}
266254
tableOfContentPopover={{
267255
style: 'clerk',
268-
enabled: !isAcademy,
269256
}}
270257
footer={{
271258
enabled: true,

‎apps/docs/components/docs-layout/docs-sidebar.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export function DocsSidebar() {
104104
['API Reference', '/api-reference/getting-started'],
105105
['CLI', '/cli'],
106106
['MCP', '/mcp/overview'],
107-
['Academy', '/academy'],
108107
].map(([label, href]) => (
109108
<ChipLink key={href} href={href} onNavigate={() => setOpen(false)}>
110109
{label}

‎apps/docs/components/footer/footer.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { SIM_SITE_URL } from '@/lib/urls'
88
* footer (`apps/sim/app/(landing)/components/footer`), ported here so both
99
* apps share one consistent footer. Links that live on sim.ai are absolute
1010
* (docs.sim.ai is a different origin); links that live on docs.sim.ai itself
11-
* (Academy, API Reference, blocks, integrations guides, …) stay relative.
11+
* (API Reference, blocks, integrations guides, …) stay relative.
1212
*/
1313

1414
const LINK_CLASS =
@@ -34,7 +34,6 @@ const PRODUCT_LINKS: FooterItem[] = [
3434

3535
const RESOURCES_LINKS: FooterItem[] = [
3636
{ label: 'Blog', href: `${SIM_SITE_URL}/blog`, external: true },
37-
{ label: 'Academy', href: '/academy' },
3837
{ label: 'Compare', href: `${SIM_SITE_URL}/comparison`, external: true },
3938
{ label: 'Careers', href: `${SIM_SITE_URL}/careers`, external: true },
4039
{ label: 'Changelog', href: `${SIM_SITE_URL}/changelog`, external: true },

‎apps/docs/components/navbar/navbar.tsx‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { cn } from '@/lib/utils'
1111

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

1919
/**
2020
* Whether a pathname is inside a section, matched on its first path segment.
@@ -51,12 +51,6 @@ const NAV_TABS = [
5151
match: (p: string) => isInSection(p, 'mcp'),
5252
external: false,
5353
},
54-
{
55-
label: 'Academy',
56-
href: '/academy',
57-
match: (p: string) => isInSection(p, 'academy'),
58-
external: false,
59-
},
6054
] as const
6155

6256
export function Navbar() {

‎apps/docs/components/ui/video-chapters.tsx‎

Lines changed: 0 additions & 73 deletions
This file was deleted.

‎apps/docs/components/ui/video-placeholder.tsx‎

Lines changed: 0 additions & 221 deletions
This file was deleted.

0 commit comments

Comments
 (0)