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 ( ); }