fractal/scripts/cargo-doc.sh
Christopher Davis 839f408255 build: Add 'doc' task
Using raw `cargo doc` lead to a situation where the
documentation tried to generate without being
aware of the resources we need to build.
2019-04-29 12:42:50 +00:00

10 lines
338 B
Bash

#!/bin/sh
export OUTPUT="$2"
export CARGO_TARGET_DIR="$3"/target
export CARGO_HOME="$CARGO_TARGET_DIR"/cargo-home
export FRACTAL_PROFILE="$4"
echo "GENERATING DOCUMENTATION"
cargo doc --manifest-path $1/Cargo.toml -p fractal-matrix-api --no-deps &&
cargo rustdoc --manifest-path $1/Cargo.toml -p fractal-gtk -- --document-private-items