onnxruntime/tools/doc/builddoc.sh
Xavier Dupré 694389a85d
Automate generation of python documentation (#6909)
Co-authored-by: xavier dupré <xavier.dupre@gmail.com>
2021-03-11 19:02:45 -08:00

9 lines
No EOL
385 B
Bash

# This script must be executed from this folder.
# $1 python path
# $2 source folder
# $3 build folder
$1/python -m pip install -r $2/docs/python/requirements.txt
export PYTHONPATH=$3/Release/Release:$PYTHONPATH
$1/python -m sphinx -j2 -v -T -b html -d $3/docs/_doctrees/html $2/docs/python $3/docs/html
$1/python -u rename_folders.py $3/docs/html
zip -r $3/python_doc.zip $3/docs/html