#!/usr/bin/bash set -ex DESTINATION=${DESTINATION:-_docs} rm -rf ${DESTINATION} mkdir -p ${DESTINATION} cat << EOF > ${DESTINATION}/index.html Daisy

board: Seed, Seed 1.1, Seed 1.2, Patch SM

EOF cargo doc --no-deps --features seed cp -r target/thumbv7em-none-eabihf/doc ${DESTINATION}/seed cargo doc --no-deps --features seed_1_1 cp -r target/thumbv7em-none-eabihf/doc ${DESTINATION}/seed_1_1 cargo doc --no-deps --features seed_1_2 cp -r target/thumbv7em-none-eabihf/doc ${DESTINATION}/seed_1_2 cargo doc --no-deps --features patch_sm cp -r target/thumbv7em-none-eabihf/doc ${DESTINATION}/patch_sm