on PRs, bail out before generate_docs can fail