pub fn write_index(
out_dir: &Path,
collections: &[Collection],
format: &str,
config_path: Option<&Path>,
) -> DiagResultpub fn write_index(
out_dir: &Path,
collections: &[Collection],
format: &str,
config_path: Option<&Path>,
) -> DiagResult