File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ matrix:
21
21
- env : TARGET=x86_64-unknown-linux-gnu
22
22
ALT=i686-unknown-linux-gnu
23
23
rust : nightly
24
+ install :
25
+ - cargo install mdbook
24
26
script :
25
27
- cargo test
26
28
- cargo doc --no-deps
@@ -31,7 +33,7 @@ matrix:
31
33
[ $(uname -s) = Linux ] &&
32
34
pip install ghp-import --user &&
33
35
$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
35
37
36
38
exclude :
37
39
- rust : stable
Original file line number Diff line number Diff line change @@ -26,3 +26,8 @@ for doc in $DOCS; do
26
26
-o target/doc \
27
27
src/doc/$doc .md
28
28
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 ../../../
You can’t perform that action at this time.
0 commit comments