mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-18 02:32:28 +02:00
feat(docs,blog,pages): add support for "unlisted" front matter - hide md content in production (#8004)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
7a023a2c41
commit
683ba3d2a0
131 changed files with 2449 additions and 303 deletions
|
@ -19,12 +19,21 @@ describe('toGlobalDataVersion', () => {
|
|||
permalink: '/current/main',
|
||||
sidebar: 'tutorial',
|
||||
frontMatter: {},
|
||||
unlisted: false,
|
||||
},
|
||||
{
|
||||
unversionedId: 'doc',
|
||||
permalink: '/current/doc',
|
||||
sidebar: 'tutorial',
|
||||
frontMatter: {},
|
||||
unlisted: undefined,
|
||||
},
|
||||
{
|
||||
unversionedId: 'docNoSidebarUnlisted',
|
||||
permalink: '/current/docNoSidebarUnlisted',
|
||||
sidebar: undefined,
|
||||
frontMatter: {},
|
||||
unlisted: true,
|
||||
},
|
||||
] as DocMetadata[];
|
||||
const sidebars: Sidebars = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue