maud/upload-docs

21 lines
363 B
Text
Raw Normal View History

2015-01-14 17:33:24 +13:00
#!/bin/sh
set -e
base="$(dirname "$(readlink -f $0)")"
2016-11-22 22:17:15 +13:00
cd "$base/maud_extras"
2015-01-14 17:33:24 +13:00
cargo clean
2016-11-22 22:23:23 +13:00
cargo doc -p maud -p maud_macros -p maud_extras --all-features --no-deps
2015-01-14 17:33:24 +13:00
cd "$base/target/doc"
2015-01-14 17:33:24 +13:00
git init
trap 'rm -rf .git/' 0
2016-03-22 23:16:27 +13:00
git add .
2015-01-14 17:33:24 +13:00
git commit -m 'Update documentation'
git remote add origin git@github.com:lfairy/maud.git
git push --force origin master:gh-pages