Commit
Message
Changed Files (2)
-
modified src/config.rs
diff --git a/src/config.rs b/src/config.rs index f50a870..b3bd6ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -116,12 +116,16 @@ pub struct GitUiConfig { #[serde(default)] pub include: Vec<String>, /// Directory prefix for git UI pages relative to the site output root. - /// Defaults to `""` (pages generated directly at the site root). - /// Set to `"repository"` for the legacy layout. - #[serde(default)] + /// Defaults to `"repository"` for backwards compatibility. + /// Set to `""` to generate pages directly at the site root. + #[serde(default = "default_prefix")] pub prefix: String, } +fn default_prefix() -> String { + "repository".to_string() +} + fn default_branch() -> String { "main".to_string() } -
modified src/git_ui.rs
diff --git a/src/git_ui.rs b/src/git_ui.rs index c8078cb..525c9dd 100644 --- a/src/git_ui.rs +++ b/src/git_ui.rs @@ -207,14 +207,6 @@ impl Progress { pub async fn build_git_repository_ui(config: &AbbayeConfig, git_cfg: &GitUiConfig) -> Result<()> { let output_dir = &config.site.output_dir; let prefix = &git_cfg.prefix; - - if prefix == "repository" { - warn!( - "The default git UI prefix has changed from 'repository' to '' (site root). \ - Set prefix = \"repository\" in your [git_ui] config to keep the legacy layout." - ); - } - let prefix_empty = prefix.is_empty(); let ui_dir = if prefix_empty { output_dir.clone()