onnxruntime/tools/doc/builddoc.sh
Thiago Crepaldi 867804bea1
Add auto doc gen for ORTModule API during CI build (#7046)
In addition to ORTModule auto documentation during packaging, this PR also update golden numbers to fix CI
2021-03-22 10:20:33 -07:00

25 lines
873 B
Bash

# This script must be executed from this folder.
# $1 python path
# $2 source folder
# $3 build folder
# $4 build config
# Install doc generation tools
$1/python -m pip install -r $2/docs/python/requirements.txt
# Fake onnxruntime installation
export PYTHONPATH=$3/$4:$PYTHONPATH
# Remove old docs
rm -rf $3/docs/
# Inference doc
$1/python -m sphinx -j1 -v -T -b html -d $3/docs/inference/_doctrees/html $2/docs/python/inference $3/docs/inference/html
$1/python -u $2/tools/doc/rename_folders.py $3/docs/inference/html
# (cd $3/docs/inference/html && zip -r $3/docs/python_inference_doc.zip .)
# Training doc
$1/python -m sphinx -j1 -v -T -b html -d $3/docs/training/_doctrees/html $2/docs/python/training $3/docs/training/html
$1/python -u $2/tools/doc/rename_folders.py $3/docs/training/html
# (cd $3/docs/training/html && zip -r $3/docs/python_training_doc.zip .)