mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 02:08:55 +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
|
@ -217,6 +217,7 @@ exports[`DefaultSidebarItemsGenerator uses explicit link over the index/readme.{
|
|||
{
|
||||
"collapsed": undefined,
|
||||
"collapsible": undefined,
|
||||
"description": "Category description",
|
||||
"items": [
|
||||
{
|
||||
"id": "parent/doc2",
|
||||
|
|
|
@ -331,6 +331,7 @@ describe('DefaultSidebarItemsGenerator', () => {
|
|||
categoriesMetadata: {
|
||||
Category: {
|
||||
label: 'Category label',
|
||||
description: 'Category description',
|
||||
link: {
|
||||
type: 'doc',
|
||||
id: 'doc3', // Using a "local doc id" ("doc1" instead of "parent/doc1") on purpose
|
||||
|
|
|
@ -282,6 +282,7 @@ describe('validateCategoryMetadataFile', () => {
|
|||
const content: CategoryMetadataFile = {
|
||||
className: 'className',
|
||||
label: 'Category Label',
|
||||
description: 'Category Description',
|
||||
link: {
|
||||
type: 'generated-index',
|
||||
slug: 'slug',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue