Skip to content

Commit 3df78ed

Browse files
authored
Merge pull request #6414 from luotao1/build.sh
refine the gen_docs in build.sh
2 parents 438ed12 + 1d30173 commit 3df78ed

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

paddle/scripts/docker/build.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ EOF
113113
-DWITH_SWIG_PY=ON \
114114
-DWITH_STYLE_CHECK=OFF
115115
make -j `nproc` gen_proto_py
116+
make -j `nproc` paddle_python
116117
make -j `nproc` paddle_docs paddle_docs_cn
118+
make -j `nproc` print_operators_doc
119+
paddle/pybind/print_operators_doc > doc/en/html/operators.json
117120
popd
118121
fi
119122

@@ -185,14 +188,6 @@ EOF
185188
${DOCKERFILE_GPU_ENV}
186189
ADD go/cmd/pserver/pserver /usr/bin/
187190
ADD go/cmd/master/master /usr/bin/
188-
EOF
189-
190-
if [[ ${WITH_DOC:-OFF} == 'ON' ]]; then
191-
cat >> /paddle/build/Dockerfile <<EOF
192-
ADD paddle/pybind/print_operators_doc /usr/bin/
193-
EOF
194-
fi
195-
cat >> /paddle/build/Dockerfile <<EOF
196191
# default command shows the paddle version and exit
197192
CMD ["paddle", "version"]
198193
EOF

0 commit comments

Comments
 (0)