Skip to content

Commit

Permalink
Merge pull request #6414 from luotao1/build.sh
Browse files Browse the repository at this point in the history
refine the gen_docs in build.sh
  • Loading branch information
luotao1 authored Dec 8, 2017
2 parents 438ed12 + 1d30173 commit 3df78ed
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions paddle/scripts/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ EOF
-DWITH_SWIG_PY=ON \
-DWITH_STYLE_CHECK=OFF
make -j `nproc` gen_proto_py
make -j `nproc` paddle_python
make -j `nproc` paddle_docs paddle_docs_cn
make -j `nproc` print_operators_doc
paddle/pybind/print_operators_doc > doc/en/html/operators.json
popd
fi

Expand Down Expand Up @@ -185,14 +188,6 @@ EOF
${DOCKERFILE_GPU_ENV}
ADD go/cmd/pserver/pserver /usr/bin/
ADD go/cmd/master/master /usr/bin/
EOF

if [[ ${WITH_DOC:-OFF} == 'ON' ]]; then
cat >> /paddle/build/Dockerfile <<EOF
ADD paddle/pybind/print_operators_doc /usr/bin/
EOF
fi
cat >> /paddle/build/Dockerfile <<EOF
# default command shows the paddle version and exit
CMD ["paddle", "version"]
EOF
Expand Down

0 comments on commit 3df78ed

Please sign in to comment.