未验证 提交 f8d757e2 编写于 作者: J Jeff Wang 提交者: GitHub

Develop doc (#50)

* update gen_doc_lib

* Update the script to make it simpler

* update submodule
上级 1d83013e
......@@ -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
......@@ -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
......
Subproject commit 79c65d16626e690e4d1c40063bdabf8eed5ad2a7
Subproject commit d4d71dce04dcd2a41964e6067be18f544cff3767
#!/usr/bin/env bash
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
echo "1. Setup submodules"
git submodule update --init --recursive
echo "2. Build Paddle library"
cd external/Paddle
git branch
paddle/scripts/paddle_docker_build.sh gen_doc_lib_lite
cd ../..
exit_code=0
#!/usr/bin/env bash
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
echo "Build Paddle library lite2"
cd external/Paddle
git branch
paddle/scripts/paddle_docker_build.sh gen_doc_lib_lite2
cd ../..
exit_code=0
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册