~matthiasbeyer/imag

ref: 9b48dc27cd00fcc75917c2702dc8dc4c6493e8d3 imag/scripts/mkdocset -rw-r--r-- 427 bytes
9b48dc27Matthias Beyer libimagentryref: Move from error-chain to failure 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# execute from repository root

CARGO=$(which cargo || exit 1)
RSDOCSDASHING=$(which rsdocs-dashing || exit 1)
DASHING=$(which dashing || exit 1)

find lib -name "Cargo.toml" -exec $CARGO doc --manifest-path {} \; || 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