Exclude Files
Control which files are included in your documentation build.
Ignoring Directories
Files and directories starting with _ or . are automatically ignored:
app/docs/
├── page.mdx # ✅ Included
├── _drafts/ # ❌ Ignored
│ └── page.mdx
└── .internal/ # ❌ Ignored
└── page.mdxExcluding from Search
To keep a page visible but exclude it from search results:
---
title: My Page
searchable: false
---Excluding from Sitemap
---
title: My Page
sitemap: false
---Best Practices
- Use
_prefix for work-in-progress content - Use
hiddenfrontmatter for pages you want accessible but not in the sidebar - Use
searchable: falsefor pages that shouldn't appear in search