Add function to update the docs

There is currently an issue with redirects, but I think it is in the scripts
in the docs repo.