## Documentation Generator

Configuration related to the behavior of the Forge documentation generator. These keys are set in `[doc]` section.

##### `out`

- Type: string
- Default: `docs`
- Environment: `FOUNDRY_DOC_OUT`

An output path for generated documentation.

##### `title`

- Type: string
- Default: `""`
- Environment: `FOUNDRY_DOC_TITLE`

Title for the generated documentation.

##### `book`

- Type: string
- Default: `book.toml`
- Environment: `FOUNDRY_DOC_BOOK`

Legacy configuration key retained for compatibility. `forge doc` now generates a Vocs site and does not read `book.toml`.

##### `homepage`

- Type: string
- Default: `README.md`
- Environment: `FOUNDRY_DOC_HOMEPAGE`

Path to user provided welcome markdown. If none is provided, it defaults to `README.md`.

##### `repository`

- Type: string
- Default: none
- Environment: `FOUNDRY_DOC_REPOSITORY`

The git repository URL. Used to provide links to git source files.
If missing, `forge` will attempt to look up the current origin url and use its value.

##### `commit`

- Type: string
- Default: current Git revision
- Environment: `FOUNDRY_DOC_COMMIT`

The Git commit hash, tag, or branch used for source and homepage links.

##### `path`

- Type: string
- Default: none
- Environment: `FOUNDRY_DOC_PATH`

Legacy configuration key retained for compatibility. Source links are now derived from the project root and source file path.

##### `ignore`

- Type: array of strings (patterns)
- Default: `[]`
- Environment: `FOUNDRY_DOC_IGNORE`

List of files to ignore when generating documentation. This is a comma separated list of glob patterns.
