2018-04-11 22:22:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# execute from repository root
|
|
|
|
|
|
|
|
CARGO=$(which cargo || exit 1)
|
|
|
|
RSDOCSDASHING=$(which rsdocs-dashing || exit 1)
|
|
|
|
DASHING=$(which dashing || exit 1)
|
|
|
|
|
2018-04-12 09:05:34 +00:00
|
|
|
find lib -name "Cargo.toml" -exec $CARGO doc --manifest-path {} \; || exit 1
|
2018-04-11 22:22:50 +00:00
|
|
|
|
|
|
|
ls target/doc | grep imag | while read pkg; do
|
|
|
|
$RSDOCSDASHING target/doc/$pkg docset-$pkg
|
|
|
|
$DASHING build --config docset-$pkg/dashing.json --source docset-$pkg/build
|
|
|
|
done
|
|
|
|
|
|
|
|
|