mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +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
|
@ -444,10 +444,18 @@ const config = {
|
|||
// This item links to a draft doc: only displayed in dev
|
||||
{
|
||||
type: 'doc',
|
||||
docId: 'test-draft',
|
||||
docId: 'index',
|
||||
label: 'Tests',
|
||||
docsPluginId: 'docs-tests',
|
||||
},
|
||||
// This item links to an unlisted doc: only displayed
|
||||
// in dev or when directly access
|
||||
{
|
||||
type: 'doc',
|
||||
docId: 'tests/visibility/some-unlisteds/unlisted1',
|
||||
label: 'Unlisted',
|
||||
docsPluginId: 'docs-tests',
|
||||
},
|
||||
// Custom item for dogfooding: only displayed in /tests/ routes
|
||||
{
|
||||
type: 'custom-dogfood-navbar-item',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue