chore(travis): check for doc directory before building extra docs
This commit is contained in:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user