mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
feat(content-docs): displayed_sidebar front matter (#5782)
This commit is contained in:
parent
fdf59f30f0
commit
45f1b819b5
11 changed files with 128 additions and 32 deletions
|
@ -22,6 +22,9 @@ import type {
|
|||
import {isCategoriesShorthand} from './utils';
|
||||
import type {CategoryMetadataFile} from './generator';
|
||||
|
||||
// NOTE: we don't add any default values during validation on purpose!
|
||||
// Config types are exposed to users for typechecking and we use the same type in normalization
|
||||
|
||||
const sidebarItemBaseSchema = Joi.object<SidebarItemBase>({
|
||||
className: Joi.string(),
|
||||
customProps: Joi.object().unknown(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue