travis: add a redirect doc homepage

This commit is contained in:
Victor Berger 2017-10-01 20:28:35 +02:00 committed by Victor Berger
parent 2fbb45273f
commit b6a2fe7748
2 changed files with 9 additions and 0 deletions

6
doc_index.html Normal file
View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=refresh content=0;url=smithay/index.html />
</head>
</html>

View File

@ -5,6 +5,9 @@ token="$GH_TOKEN"
commit=$(git rev-parse --short HEAD)
msg="Documentation for $repo@$commit"
# add a homepage
cp ./doc_index.html ./target/doc/index.html
git clone https://github.com/davisp/ghp-import
./ghp-import/ghp_import.py -n -m "$msg" target/doc
# pipe output to /dev/null to avoid printing our token in travis log