diff --git a/tools/document_preview.sh b/tools/document_preview.sh index d0e9b3178a66477b5a6015f67bfa93e7e3ca9fcd..17d9a1d10a3ba102558da81a2ba04ce70dd53bad 100755 --- a/tools/document_preview.sh +++ b/tools/document_preview.sh @@ -1,10 +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 -sh ${PADDLE_ROOT}/FluidDoc/doc/fluid/api/gen_doc.sh -pip install ${PADDLE_ROOT}/build/opt/paddle/share/wheels/*.whl +cd ${PADDLE_ROOT}/FluidDoc/doc/fluid/api +sh gen_doc.sh apt-get update && apt-get install -y python-dev build-essential cd ${PADDLE_ROOT}/PaddlePaddle.org/portal pip install -r requirements.txt