Skip to content

Commit f25da91

Browse files
committed
chore: remove all remaining course/lesson references
- pro-benefits.tsx: replace course marketing copy with generic content terms - rss.ts: remove dead course case from typePath() - algolia-search.tsx: remove commented-out course initialUiState - sanity.config.ts: remove course/lesson schema imports and registrations - Deleted: sanity/schemas/documents/course.ts, lesson.ts
1 parent 7b285ad commit f25da91

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

components/algolia-search.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,6 @@ export default function AlgoliaSearch({
139139
future={{
140140
preserveSharedStateOnUnmount: true,
141141
}}
142-
// initialUiState={{
143-
// [indexName]: {
144-
// refinementList: {
145-
// _type: ["course"],
146-
// },
147-
// },
148-
// }}
149142
>
150143
<div className="flex gap-8 p-2 sm:p-4">
151144
{showFacets && (

components/pro-benefits.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function ProBenefits({
4747
</h1>
4848
<p className="max-w-[600px] text-muted-foreground md:text-xl">
4949
Unlock premium benefits with our CodingCat.dev Pro plan,
50-
including advanced courses, lifetime access, and personalized
50+
including premium content, lifetime access, and personalized
5151
support.
5252
</p>
5353
</div>
@@ -80,15 +80,15 @@ export default function ProBenefits({
8080
</h2>
8181
<p className="mx-auto max-w-[700px] text-muted-foreground md:text-xl/relaxed">
8282
As a CodingCat.dev Pro member, you&apos;ll gain access to our
83-
advanced course library, covering topics like machine learning,
84-
data science, and cloud architecture.
83+
premium content library, covering topics like web development,
84+
cloud architecture, and modern frameworks.
8585
</p>
8686
<Link
87-
href="/courses"
87+
href="/blog"
8888
className="inline-flex h-9 items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
8989
prefetch={false}
9090
>
91-
Explore Courses
91+
Explore Content
9292
</Link>
9393
</div>
9494
<div className="flex flex-col items-start space-y-4">

lib/rss.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ function typePath(type: string): string {
1717
return "blog";
1818
case "podcast":
1919
return "podcasts";
20-
case "course":
21-
return "courses";
2220
default:
2321
return type + "s";
2422
}

sanity.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ import { sharePreviewAction } from "@/sanity/components/documentActions/sharePre
3535
import { assistWithPresets } from "@/sanity/plugins/assist";
3636
import author from "@/sanity/schemas/documents/author";
3737
import previewSession from "@/sanity/schemas/previewSession";
38-
import course from "@/sanity/schemas/documents/course";
39-
import lesson from "@/sanity/schemas/documents/lesson";
4038
import guest from "@/sanity/schemas/documents/guest";
4139
import page from "@/sanity/schemas/documents/page";
4240
import podcast from "@/sanity/schemas/documents/podcast";
@@ -142,8 +140,6 @@ export default defineConfig({
142140
dashboardSettings,
143141
// Documents
144142
author,
145-
course,
146-
lesson,
147143
guest,
148144
page,
149145
podcast,

0 commit comments

Comments
 (0)