Have 'mach doc' copy Rust documentation.

This commit is contained in:
Simon Sapin 2014-11-28 18:27:11 +00:00
parent 873ca6cadd
commit d25c66904e
2 changed files with 33 additions and 18 deletions

View file

@ -8,14 +8,9 @@ set -e
cd "$(dirname $0)/../.."
mkdir -p components/servo/target/doc
./mach bootstrap-rust
# Ordered so that:
# * etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html
# * ./mach doc overwrites $(mach rust-root)/doc/search-index.js
cp -R $(./mach rust-root)/doc/* components/servo/target/doc/
cp etc/doc.servo.org/* components/servo/target/doc/
./mach doc
# etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html
cp etc/doc.servo.org/* components/servo/target/doc/
ghp-import -n components/servo/target/doc
git push -qf https://${TOKEN}@github.com/servo/doc.servo.org.git gh-pages