mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 04:57:50 +02:00
fix(docs): the _category_.json description attribute should display on generated index pages (#10324)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
95ab9f8ee4
commit
44ddada37a
9 changed files with 11 additions and 0 deletions
|
@ -64,6 +64,7 @@ function postProcessSidebarItem(
|
|||
.map((subItem) => postProcessSidebarItem(subItem, params))
|
||||
.filter((v): v is SidebarItem => Boolean(v)),
|
||||
};
|
||||
|
||||
// If the current category doesn't have subitems, we render a normal link
|
||||
// instead.
|
||||
if (category.items.length === 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue