Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description for folder hidding. #2743

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/pages/docs/docs-theme/page-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,22 @@ By default, all MDX routes in the filesystem will be shown on the sidebar. But
you can hide a specific pages or folders by using the `"display": "hidden"`
configuration:

```json filename="pages/_meta.json" {4}
```json filename="pages/_meta.json" {11}
{
"index": "My Homepage",
"contact": {
// The page will still be accessible via the `/contact` URL,
// but it will not be shown in the sidebar.
"display": "hidden"
},
"draft": {
"type": "folder", // This is required for hiding folders.
"display": "hidden"
}
"about": "About Us"
}
```

The page will still be accessible via the `/contact` URL, but it will not be
shown in the sidebar.

## Navbar Items

### Sub Docs
Expand Down