2015-01-14 17:33:24 +13:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
base="$(dirname "$(readlink -f $0)")"
|
2016-09-25 12:50:33 +13:00
|
|
|
cd "$base/maud"
|
2015-01-14 17:33:24 +13:00
|
|
|
|
|
|
|
cargo clean
|
2016-09-25 12:50:33 +13:00
|
|
|
cargo doc --all-features --no-deps
|
2015-01-14 17:33:24 +13:00
|
|
|
|
2016-03-22 23:16:27 +13:00
|
|
|
cd 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
|