Skip to content

Commit b45ac06

Browse files
committed
fix(theme): remove doc card snippets
1 parent f0723ca commit b45ac06

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/theme/DocCard/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import React, { type ReactNode } from "react";
22
import clsx from "clsx";
33
import Link from "@docusaurus/Link";
4-
import {
5-
useDocById,
6-
findFirstSidebarItemLink,
7-
} from "@docusaurus/plugin-content-docs/client";
4+
import { findFirstSidebarItemLink } from "@docusaurus/plugin-content-docs/client";
85
import { usePluralForm } from "@docusaurus/theme-common";
96
import isInternalUrl from "@docusaurus/isInternalUrl";
107
import { translate } from "@docusaurus/Translate";
@@ -104,14 +101,12 @@ function CardCategory({ item }: { item: PropSidebarItemCategory }): ReactNode {
104101

105102
function CardLink({ item }: { item: PropSidebarItemLink }): ReactNode {
106103
const icon = isInternalUrl(item.href) ? "📄️" : "🔗";
107-
const doc = useDocById(item.docId ?? undefined);
108104
return (
109105
<CardLayout
110106
className={item.className}
111107
href={item.href}
112108
icon={icon}
113109
title={item.label}
114-
description={item.description ?? doc?.description}
115110
/>
116111
);
117112
}

0 commit comments

Comments
 (0)