Skip to main content

Crate docgen_config

Crate docgen_config 

Source
Expand description

Parses an optional docgen.toml. When absent, SiteConfig::default() reproduces docgen’s pre-P6 hard-coded behaviour exactly, so a project with no config builds identically to before.

Structs§

ComponentsConfig
[components] section.
Features
Feature toggles. All default true — the pre-P6 behaviour (every feature on).
SiteConfig
The whole resolved site config. Default == pre-P6 behaviour.

Enums§

ConfigError

Functions§

load
Load docgen.toml from project_root. Missing file → SiteConfig::default() (not an error). Present-but-malformed → Err.