Skip to content

Commit 102ab97

Browse files
committed
[doc] Publish book to gh-pages
1 parent 61ca302 commit 102ab97

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ matrix:
2121
- env: TARGET=x86_64-unknown-linux-gnu
2222
ALT=i686-unknown-linux-gnu
2323
rust: nightly
24+
install:
25+
- cargo install mdbook
2426
script:
2527
- cargo test
2628
- cargo doc --no-deps
@@ -31,7 +33,7 @@ matrix:
3133
[ $(uname -s) = Linux ] &&
3234
pip install ghp-import --user &&
3335
$HOME/.local/bin/ghp-import -n target/doc &&
34-
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 > /dev/null
36+
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null
3537
3638
exclude:
3739
- rust: stable

src/ci/dox.sh

+5
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ for doc in $DOCS; do
2626
-o target/doc \
2727
src/doc/$doc.md
2828
done
29+
30+
# Temporary preview for mdBook docs
31+
cd src/doc/book
32+
$HOME/.cargo/bin/mdbook build --no-create --dest-dir ../../../target/doc/book
33+
cd ../../../

0 commit comments

Comments
 (0)