fn clean_doc(path: &Path) -> CargoResult<()>