#!/bin/zsh# Requires ghp-import to be installed (e.g. via pip3)rm -rf target/doc&&# purge old docs that may include docs for depscargo doc --no-deps&&# document just this crateecho"<meta http-equiv=refresh content=0;url=llvm_ir/index.html>"> target/doc/index.html&&# put in the top-level redirectghp-import -np target/doc&&# publish to gh-pages branchrm -rf target/doc&&# kill the docs that were just this cratecargo doc # regenerate all docs (including deps) for local use