mirror of
https://github.com/corda/corda.git
synced 2025-01-31 08:25:50 +00:00
Docs: add a script that runs sphinx and dokka together to generate one docsite
This commit is contained in:
parent
779e5d8af8
commit
acd9c9ded4
26
scripts/generate-docsite.sh
Executable file
26
scripts/generate-docsite.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/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.7/dokka-fatjar.jar
|
||||
fi
|
||||
|
||||
echo "Generating docsite ..."
|
||||
echo
|
||||
|
||||
( cd docs; make html )
|
||||
|
||||
echo
|
||||
echo "Generating API docs ..."
|
||||
echo
|
||||
|
||||
java -jar lib/dokka.jar -output docs/build/html/api src/main/kotlin core/src/main/kotlin contracts/src/main/kotlin | grep -v "No documentation for"
|
||||
|
||||
echo
|
||||
echo "Done"
|
Loading…
x
Reference in New Issue
Block a user