Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom components #1143

Merged
merged 1 commit into from
Dec 9, 2024
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
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.