Hiding a page
A page is hidden if it is not included in yourdocs.json
navigation. To hide a page, remove it from your navigation structure.
Hidden pages use the same URL structure as regular pages based on their file path. For example, guides/hidden-page.mdx
would be accessible at docs.yoursite.com/guides/hidden-page
.
See an example of a hidden page.
Some navigation elements like sidebars, dropdowns, and tabs may appear empty or shift layout on hidden pages.
Hiding a group of pages
A group of pages is hidden if thehidden
property is set to true
in your docs.json
file:
Getting started
group is hidden, but the Guides
group is visible.
Hiding a tab
You can also hide a tab by adding thehidden
property to your docs.json
file:
Search, SEO, and AI indexing
By default, hidden pages are excluded from indexing for search engines, internal search within your docs, and as context for the AI assistant. To include hidden pages in search results and as context for the assistant, add theseo
property to your docs.json
:
noindex: "true"
to its frontmatter.