pub fn needs_regen(state: &DocsState, file_path: &Path, new_hash: &str) -> bool
Whether a file should be regenerated in incremental mode.