Build the docs twice to get testing module docs.

This commit is contained in:
Sergio Benitez 2016-10-25 10:20:29 +02:00
parent 2f04027c5f
commit 6a6efaf56b
1 changed files with 3 additions and 1 deletions

View File

@ -11,9 +11,11 @@ source $SCRIPT_DIR/config.sh
function mk_doc() { function mk_doc() {
local dir=$1 local dir=$1
local flag=$2
pushd $dir > /dev/null pushd $dir > /dev/null
echo ":: Documenting '${dir}'..." echo ":: Documenting '${dir}'..."
cargo doc --no-deps --all-features cargo doc --no-deps --all-features
cargo doc --no-deps $flag
popd > /dev/null popd > /dev/null
} }
@ -22,4 +24,4 @@ cargo clean
mk_doc $LIB_DIR mk_doc $LIB_DIR
mk_doc $CODEGEN_DIR mk_doc $CODEGEN_DIR
mk_doc $CONTRIB_DIR mk_doc $CONTRIB_DIR --all-features