Prune empty intermediate resources from the documentation.