#[derive(Clone, Debug)]
pub struct DocsConfig {
pub enabled: bool,
}
impl Default for DocsConfig {
fn default() -> Self {
Self { enabled: true }
}
}
impl DocsConfig {
pub(crate) fn from_config(file: &super::ConfigFile) -> Result<Self, super::ConfigError> {
Ok(Self { enabled: file.get_or("docs.enabled", true)? })
}
}