mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
34 lines
1,007 B
Text
34 lines
1,007 B
Text
---
|
|
tags: [visibility]
|
|
---
|
|
|
|
# Visibility
|
|
|
|
A category to play with draft/unlisted front matter.
|
|
|
|
In dev, both draft/unlisted items are displayed.
|
|
|
|
---
|
|
|
|
In production, draft items shouldn't be accessible:
|
|
|
|
- [/tests/docs/tests/visibility/only-drafts/draft1](pathname:///tests/docs/tests/visibility/only-drafts/draft1)
|
|
|
|
---
|
|
|
|
In production, unlisted items should remain accessible, but be hidden in the sidebar (unless currently browsed):
|
|
|
|
- [./only-unlisteds/unlisted1.md](./only-unlisteds/unlisted1.mdx)
|
|
- [./only-unlisteds/unlisted2.md](./only-unlisteds/unlisted2.mdx)
|
|
- [./only-unlisteds/unlisted-subcategory/unlisted3.md](./only-unlisteds/unlisted-subcategory/unlisted3.mdx)
|
|
- [./some-unlisteds/unlisted1.md](./some-unlisteds/unlisted1.mdx)
|
|
- [./some-unlisteds/unlisted2.md](./some-unlisteds/unlisted2.mdx)
|
|
- [./some-unlisteds/unlisted-subcategory/unlisted3.md](./some-unlisteds/unlisted-subcategory/unlisted3.mdx)
|
|
|
|
---
|
|
|
|
```mdx-code-block
|
|
import DocCardList from '@theme/DocCardList';
|
|
|
|
<DocCardList />
|
|
```
|