From 9a8b8fc82e293876cdb6a626768b9f5f91eee7e7 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 21 May 2019 12:35:48 +0800 Subject: [PATCH 1/2] test=develop --- tools/document_preview.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/document_preview.sh b/tools/document_preview.sh index d0e9b3178a6647..01777cf33e7997 100755 --- a/tools/document_preview.sh +++ b/tools/document_preview.sh @@ -3,7 +3,8 @@ PADDLE_ROOT=/paddle cd ${PADDLE_ROOT} git clone https://github.com/PaddlePaddle/FluidDoc git clone https://github.com/tianshuo78520a/PaddlePaddle.org.git -sh ${PADDLE_ROOT}/FluidDoc/doc/fluid/api/gen_doc.sh +cd ${PADDLE_ROOT}/FluidDoc/doc/fluid/api +sh gen_doc.sh pip install ${PADDLE_ROOT}/build/opt/paddle/share/wheels/*.whl apt-get update && apt-get install -y python-dev build-essential cd ${PADDLE_ROOT}/PaddlePaddle.org/portal From 3d939948c3fcb8238777fc195a3e27efcdaa62be Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 21 May 2019 22:12:52 +0800 Subject: [PATCH 2/2] test=develop --- tools/document_preview.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/document_preview.sh b/tools/document_preview.sh index 01777cf33e7997..17d9a1d10a3ba1 100755 --- a/tools/document_preview.sh +++ b/tools/document_preview.sh @@ -1,11 +1,12 @@ #!/bin/bash -PADDLE_ROOT=/paddle +PADDLE_ROOT=/home +mkdir ${PADDLE_ROOT} cd ${PADDLE_ROOT} +pip install /paddle/build/opt/paddle/share/wheels/*.whl git clone https://github.com/PaddlePaddle/FluidDoc git clone https://github.com/tianshuo78520a/PaddlePaddle.org.git cd ${PADDLE_ROOT}/FluidDoc/doc/fluid/api sh gen_doc.sh -pip install ${PADDLE_ROOT}/build/opt/paddle/share/wheels/*.whl apt-get update && apt-get install -y python-dev build-essential cd ${PADDLE_ROOT}/PaddlePaddle.org/portal pip install -r requirements.txt