Rewrite a file for documentation