Improves the publish_doc script