---
title: "Exclude Files"
description: "Exclude specific files or directories from documentation."
canonical_url: "https://farming-labs-docs-docs-cloud-auuecsxay-farming-labs.vercel.app/docs/organize/exclude-files"
markdown_url: "https://farming-labs-docs-docs-cloud-auuecsxay-farming-labs.vercel.app/docs/organize/exclude-files.md"
last_updated: "2018-10-20"
---

# Exclude Files
URL: /docs/organize/exclude-files
LLM index: /llms.txt
Description: Exclude specific files or directories from documentation.

# 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.mdx
```

## Excluding from Search

To keep a page visible but exclude it from search results:

```mdx
---
title: My Page
searchable: false
---
```

## Excluding from Sitemap

```mdx
---
title: My Page
sitemap: false
---
```

## Best Practices

1. Use `_` prefix for work-in-progress content
2. Use `hidden` frontmatter for pages you want accessible but not in the sidebar
3. Use `searchable: false` for pages that shouldn't appear in search

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
