mirror of
https://github.com/corda/corda.git
synced 2024-12-24 15:16:45 +00:00
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:
commit
0463539655
@ -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;
|
|
||||||
|
|
||||||
echo "Generating docsite ..."
|
if [ ! -d "virtualenv" ]
|
||||||
echo
|
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
|
||||||
|
|
||||||
make clean html
|
echo "Generating docsite ..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
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
|
||||||
@ -38,4 +47,4 @@ User-agent: *
|
|||||||
Disallow: /
|
Disallow: /
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
Loading…
Reference in New Issue
Block a user