Merged in aslemmer-fix-generate-docsite (pull request #456)

docs: Fix generate-docsite.sh to use virtualenv instead of global pip, chmod +x
This commit is contained in:
Andras Slemmer 2016-11-08 13:58:09 +00:00
commit 0463539655

View File

@ -13,20 +13,29 @@ if [ ! -e lib/dokka.jar ]; then
wget -O lib/dokka.jar https://github.com/Kotlin/dokka/releases/download/0.9.8/dokka-fatjar.jar wget -O lib/dokka.jar https://github.com/Kotlin/dokka/releases/download/0.9.8/dokka-fatjar.jar
fi fi
echo "Installing pip dependencies ... " (
echo
cd docs cd docs
pip install -r requirements.txt;
if [ ! -d "virtualenv" ]
then
virtualenv -p python2.7 virtualenv
fi
. virtualenv/bin/activate
if [ ! -d "docs/virtualenv/lib/python2.7/site-packages/sphinx" ]
then
echo "Installing pip dependencies ... "
pip install -r requirements.txt
fi
echo "Generating docsite ..." echo "Generating docsite ..."
echo echo
make clean html make html
)
echo echo
echo "Generating API docs ..." echo "Generating API docs ..."
echo echo
cd ..
java -jar lib/dokka.jar -output docs/build/html/api core/src/main/kotlin finance/src/main/kotlin node/src/main/kotlin src/main/kotlin client/src/main/kotlin | grep -v "No documentation for" java -jar lib/dokka.jar -output docs/build/html/api core/src/main/kotlin finance/src/main/kotlin node/src/main/kotlin src/main/kotlin client/src/main/kotlin | grep -v "No documentation for"
echo echo