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§
- Components
Config [components]section.- Features
- Feature toggles. All default
true— the pre-P6 behaviour (every feature on). - Site
Config - The whole resolved site config.
Default== pre-P6 behaviour.
Enums§
Functions§
- load
- Load
docgen.tomlfromproject_root. Missing file →SiteConfig::default()(not an error). Present-but-malformed →Err. - normalize_
base - Normalize a configured/derived
baseinto a leading-slash, no-trailing-slash form:""/"/"->"","docs"/"/docs/"/"docs/"->"/docs","/group/project/"->"/group/project". Interior slashes are preserved so multi-segment sub-paths (GitLab’snamespace/project) round-trip correctly. - resolve_
base - Resolve the effective deploy base path from config plus environment, applying
this precedence (first match wins), then
normalize_base: