#!/bin/sh set -e : ${TRAVIS:?'This should only be run on Travis CI'} TAG=${1:?'Must provide tag'} CRATE=${2:?'Must provide crate'} # Setup this repo to publish the docs git fetch origin gh-pages git checkout -f -b gh-pages FETCH_HEAD # Move the built docs into versioned folder mv target/doc docs/$TAG # Update the index to point to the versioned docs sed -i'' -e '//a\