Skip to content

Commit

Permalink
Re-added lost API documentation generation command
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Mar 21, 2018
1 parent 2d35ad6 commit efe17a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/Docker/generate_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ export LANG=C.UTF-8
BRANCH=${TRAVIS_BRANCH:-master}
echo -e "Generating API documentation for branch ${BRANCH}"

# Generate API documentation
cd /shared
mkdocs build --clean

# Generarte API reference
mkdir -p /shared/site/apireference
chmod -R 777 /shared/site
cd /shared/site/apireference
cp -R /opt/swagger-ui/dist/* .
curl https://raw.githubusercontent.com/Open-EO/openeo-api/$BRANCH/swagger.json -O
sed -i -e 's!http://petstore.swagger.io/v2/swagger.json!swagger.json!g' index.html

0 comments on commit efe17a4

Please sign in to comment.