diff --git a/.travis/docs.sh b/.travis/docs.sh index 9095a48f..3a553ec5 100755 --- a/.travis/docs.sh +++ b/.travis/docs.sh @@ -6,14 +6,17 @@ shopt -s globstar cargo doc --no-deps -for f in ./doc/**/*.md; do - rustdoc $f -L ./target/debug -L ./target/debug/deps -o "$(dirname $f)" --html-before-content=./doc/prelude.html.inc --html-after-content=./doc/postlude.html.inc --markdown-css=guide.css; -done +if [ -d ./doc ]; then + for f in $(find ./doc/**/*.md); do + rustdoc $f -L ./target/debug -L ./target/debug/deps -o "$(dirname $f)" --html-before-content=./doc/prelude.html.inc --html-after-content=./doc/postlude.html.inc --markdown-css=guide.css; + done -cp --parent ./doc/**/*.html ./target -cp ./doc/guide.css ./target/doc/guide/guide.css + cp --parent ./doc/**/*.html ./target + cp ./doc/guide.css ./target/doc/guide/guide.css +fi -git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1 +git clone --branch gh-pages "git@github.com:${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1 +#git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1 cd deploy_docs git config user.name "Sean McArthur"