Only publish docs on success