Clean up when doing local doc generation