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.
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.