mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-20 03:32:29 +02:00
feat(content-docs): allow SEO metadata for category index pages (#6239)
This commit is contained in:
parent
e1d1618039
commit
3cb99124de
8 changed files with 31 additions and 2 deletions
|
@ -52,6 +52,8 @@ export type SidebarItemCategoryLinkGeneratedIndexConfig = {
|
|||
slug?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
image?: string;
|
||||
keywords?: string | readonly string[];
|
||||
};
|
||||
export type SidebarItemCategoryLinkGeneratedIndex = {
|
||||
type: 'generated-index';
|
||||
|
@ -59,6 +61,8 @@ export type SidebarItemCategoryLinkGeneratedIndex = {
|
|||
permalink: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
image?: string;
|
||||
keywords?: string | readonly string[];
|
||||
};
|
||||
|
||||
export type SidebarItemCategoryLinkConfig =
|
||||
|
|
|
@ -70,6 +70,8 @@ const sidebarItemCategoryLinkSchema = Joi.object<SidebarItemCategoryLink>()
|
|||
// permalink: Joi.string().optional(), // No, this one is not in the user config, only in the normalized version
|
||||
title: Joi.string().optional(),
|
||||
description: Joi.string().optional(),
|
||||
image: Joi.string().optional(),
|
||||
keywords: [Joi.string(), Joi.array().items(Joi.string())],
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue