From 34c949d43f36738f879048d42f7ff3a1fd76bf04 Mon Sep 17 00:00:00 2001 From: KirisameVanilla <118162831+KirisameVanilla@users.noreply.github.com> Date: Sun, 28 Sep 2025 10:04:54 +0800 Subject: [PATCH] feat: use readme description as the category description --- src/theme/DocCard/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/theme/DocCard/index.js b/src/theme/DocCard/index.js index 282b616..e9fe31e 100644 --- a/src/theme/DocCard/index.js +++ b/src/theme/DocCard/index.js @@ -61,13 +61,15 @@ function CardCategory({item}) { if (!href) { return null; } + const docId = href.substring(6) + 'README'; + const doc = useDocById(docId ?? undefined); return ( ); }