document_preview.sh 632 字节
Newer Older
T
tianshuo78520a 已提交
1
#!/bin/bash
2 3
PADDLE_ROOT=/home
mkdir ${PADDLE_ROOT}
T
tianshuo78520a 已提交
4
cd ${PADDLE_ROOT}
5
pip install /paddle/build/opt/paddle/share/wheels/*.whl
T
tianshuo78520a 已提交
6 7
git clone https://github.com/PaddlePaddle/FluidDoc
git clone https://github.com/tianshuo78520a/PaddlePaddle.org.git
8 9
cd ${PADDLE_ROOT}/FluidDoc/doc/fluid/api
sh gen_doc.sh
T
tianshuo78520a 已提交
10 11 12 13 14 15
apt-get update && apt-get install -y python-dev build-essential
cd ${PADDLE_ROOT}/PaddlePaddle.org/portal
pip install -r requirements.txt
#If the default port is not occupied, you can use port 8000, you need to replace it with a random port on the CI.
sed -i "s#8000#$1#g" runserver
nohup ./runserver --paddle ${PADDLE_ROOT}/FluidDoc &