mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 06:27:02 +02:00
feat(theme-classic): new configuration syntax for a simple footer (#6132)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
cb4265253a
commit
d987c22996
9 changed files with 364 additions and 91 deletions
|
@ -311,14 +311,19 @@ const ThemeConfigSchema = Joi.object({
|
|||
href: Joi.string(),
|
||||
}),
|
||||
copyright: Joi.string(),
|
||||
links: Joi.array()
|
||||
.items(
|
||||
Joi.object({
|
||||
title: Joi.string().allow(null),
|
||||
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
}),
|
||||
)
|
||||
.default([]),
|
||||
links: Joi.alternatives(
|
||||
Joi.array()
|
||||
.items(
|
||||
Joi.object({
|
||||
title: Joi.string().allow(null).default(null),
|
||||
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
}),
|
||||
)
|
||||
.default([]),
|
||||
Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
).messages({
|
||||
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`,
|
||||
}),
|
||||
}).optional(),
|
||||
prism: Joi.object({
|
||||
theme: Joi.object({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue