Skip to content

Commit

Permalink
Remove custom components
Browse files Browse the repository at this point in the history
Remove custom components leftover after migration from MDX to markdoc.

Test plan:
- Confirm no visual regressions where custom components were previously
  being used
  • Loading branch information
tom-blake committed Dec 9, 2024
1 parent 792a662 commit 41d25fa
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 77 deletions.
16 changes: 0 additions & 16 deletions src/components/ApiH2.astro

This file was deleted.

14 changes: 0 additions & 14 deletions src/components/H2.astro

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/ProseA.vue

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/ProseBlockquote.vue

This file was deleted.

4 changes: 1 addition & 3 deletions src/pages/api/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { getCollection } from '../../utils/getCollection';
import Prose from '../../components/Prose.astro';
import BaseLayout from '../../layouts/BaseLayout.astro';
import customComponents from '../../utils/customComponents';
import ApiH2 from '../../components/ApiH2.astro';
import navigation from '../../navigation/apiNavigation';
export async function getStaticPaths() {
Expand All @@ -29,7 +27,7 @@ const { title, description } = entry.data;
{ title }
</h1>
</header>
<Content components={{ ...customComponents, h2: ApiH2 }}/>
<Content />
</Prose>
</article>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/connections/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import { getCollection } from '../../utils/getCollection';
import customComponents from '../../utils/customComponents';
import H2 from '../../components/H2.astro';
import FarmlandsLayout from '../../layouts/FarmlandsLayout.astro';
import navigation from '../../navigation/guideNavigation';
Expand Down
4 changes: 1 addition & 3 deletions src/pages/guides/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { getCollection } from '../../utils/getCollection';
import Prose from '../../components/Prose.astro';
import TocNav from '../../components/TocNav.vue';
import BaseLayout from '../../layouts/BaseLayout.astro';
import customComponents from '../../utils/customComponents';
import H2 from '../../components/H2.astro';
import navigation from '../../navigation/guideNavigation';
export async function getStaticPaths() {
Expand Down Expand Up @@ -35,7 +33,7 @@ const { title, description } = entry.data;
{ title }
</h1>
</header>
<Content components={{ ...customComponents, h2: H2 }}/>
<Content />
</Prose>
</article>
</div>
Expand Down
7 changes: 0 additions & 7 deletions src/utils/customComponents.js

This file was deleted.

0 comments on commit 41d25fa

Please sign in to comment.