> ## Documentation Index
> Fetch the complete documentation index at: https://mdxify.zzstoatzz.io/llms.txt
> Use this file to discover all available pages before exploring further.

# discovery

# `mdxify.discovery`

Module discovery utilities.

## Functions

### `get_module_source_file` <sup><a href="https://github.com/zzstoatzz/mdxify/blob/main/src/mdxify/discovery.py#L10" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
get_module_source_file(module_name: str) -> Optional[Path]
```

Get the source file path for a module.

### `find_all_modules` <sup><a href="https://github.com/zzstoatzz/mdxify/blob/main/src/mdxify/discovery.py#L21" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
find_all_modules(root_module: str) -> list[str]
```

Find all modules under a root module.

### `should_include_module` <sup><a href="https://github.com/zzstoatzz/mdxify/blob/main/src/mdxify/discovery.py#L38" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

```python theme={null}
should_include_module(module_name: str, include_internal: bool = False) -> bool
```

Check if a module should be included in the API documentation.
