docs(guide): build and test markdown files in doc directory

This commit is contained in:
Sean McArthur
2016-07-14 19:25:49 -07:00
parent 220d09fc3a
commit 29b65f6bdd
3 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,16 @@
set -o errexit
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)";
done
cp --parent ./doc/**/*.md ./target
git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs
cd deploy_docs