corda/scripts/generate-docsite.sh
Mike Hearn 4d83f1489f Add a client library that provides an RPC mechanism for talking to the Corda node.
The RPC mechanism uses message queues and is essentially conventional except for the fact that it supports marshalling observables. An observable encapsulates a stream of ongoing events, and server-side observables sent to the client are automatically bound to message queues and managed by Artemis.
2016-09-16 10:13:21 +01:00

34 lines
712 B
Bash
Executable File

#!/usr/bin/env bash
if [ ! -e ./gradlew ]; then
echo "Run from the root directory please"
exit 1
fi
if [ ! -e lib/dokka.jar ]; then
echo "Downloading Dokka tool ... "
echo
wget -O lib/dokka.jar https://github.com/Kotlin/dokka/releases/download/0.9.8/dokka-fatjar.jar
fi
echo "Generating docsite ..."
echo
( cd docs; make clean html )
echo
echo "Generating API docs ..."
echo
java -jar lib/dokka.jar -output docs/build/html/api core/src/main/kotlin contracts/src/main/kotlin node/src/main/kotlin src/main/kotlin client/src/main/kotlin | grep -v "No documentation for"
echo
echo "Writing robots.txt"
echo
cat <<EOF >docs/build/html/robots.txt
User-agent: *
Disallow: /
EOF
echo "Done"