cleaning up docs before generating them