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

# generator

# `mdxify.generator`

MDX documentation generation.

## Functions

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

```python theme={null}
is_module_empty(module_path: Path) -> bool
```

Check if a module documentation file indicates it's empty.

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

```python theme={null}
generate_mdx(module_info: dict[str, Any], output_file: Path, repo_url: Optional[str] = None, branch: str = 'main', root_module: Optional[str] = None, renderer: Optional[Renderer] = None) -> None
```

Generate MDX documentation from module info.

**Args:**

* `module_info`: Parsed module information
* `output_file`: Path to write the MDX file
* `repo_url`: GitHub repository URL for source links
* `branch`: Git branch name for source links
* `root_module`: Root module name for finding relative paths
