imag/scripts/mkdocset

17 lines
377 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# execute from repository root
CARGO=$(which cargo || exit 1)
RSDOCSDASHING=$(which rsdocs-dashing || exit 1)
DASHING=$(which dashing || exit 1)
$CARGO doc --all || exit 1
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