Skip to content

Commit

Permalink
Develop doc (PaddlePaddle#50)
Browse files Browse the repository at this point in the history
* update gen_doc_lib

* Update the script to make it simpler

* update submodule
  • Loading branch information
jetfuel authored Aug 31, 2018
1 parent 1d83013 commit f8d757e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 58 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ addons:
- python
- python-pip
- python2.7-dev
- golang
ssh_known_hosts: 13.229.163.131
before_install:
- sudo pip install pylint pytest astroid isort
Expand All @@ -36,13 +35,13 @@ before_install:

script:
- |
if [ $JOB == "doc" ]; then scripts/deploy_docs.sh
if [ $JOB == "doc" ]; then scripts/deploy_docs.sh full
fi
if [ $JOB == "lite_lib" ]; then scripts/build_doc_lib_lite.sh
if [ $JOB == "lite_lib" ]; then scripts/deploy_docs.sh pybind
fi
if [ $JOB == "lite_lib2" ]; then scripts/build_doc_lib_lite2.sh
if [ $JOB == "lite_lib2" ]; then scripts/deploy_docs.sh proto
fi
if [ $JOB == "en_external_doc" ]; then scripts/deploy_en_external_docs.sh
Expand Down
2 changes: 1 addition & 1 deletion external/Paddle
27 changes: 0 additions & 27 deletions scripts/build_doc_lib_lite.sh

This file was deleted.

23 changes: 0 additions & 23 deletions scripts/build_doc_lib_lite2.sh

This file was deleted.

11 changes: 8 additions & 3 deletions scripts/deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ elif [[ "$TRAVIS_BRANCH" == "develop" || "$TRAVIS_BRANCH" =~ ^v|release/[[:dig
PPO_SCRIPT_BRANCH=master
else
# Early exit, this branch doesn't require documentation build
echo "This branch doesn't require documentation build"
echo "This branch doesn't require documentation build";
exit $exit_code;
fi

echo "Build Paddle library. This step is needed to compile Paddle API documents"
echo "Build Paddle library $1. This step is needed to compile Paddle API documents"
cd external/Paddle
git branch
paddle/scripts/paddle_docker_build.sh gen_doc_lib
paddle/scripts/paddle_docker_build.sh gen_doc_lib $1
cd ../..

if [[ "$1" == "pybind" || "$1" == "proto" ]]; then
echo "Finish building lite library";
exit $exit_code;
fi

export DEPLOY_DOCS_SH=https://raw.githubusercontent.com/PaddlePaddle/PaddlePaddle.org/$PPO_SCRIPT_BRANCH/scripts/deploy/deploy_docs.sh

echo "Deploy under docker environment"
Expand Down

0 comments on commit f8d757e

Please sign in to comment.