mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Fix pipeline generating python documentation (#7027)
Co-authored-by: xavier dupré <xavier.dupre@gmail.com>
This commit is contained in:
parent
c60ef62190
commit
514444d820
3 changed files with 22 additions and 9 deletions
|
|
@ -1,6 +1,10 @@
|
|||
autopep8
|
||||
matplotlib
|
||||
scikit-learn
|
||||
skl2onnx
|
||||
sphinx
|
||||
sphinx-gallery
|
||||
pyquickhelper
|
||||
sphinxcontrib.imagesvg
|
||||
tensorflow
|
||||
tensorflow-onnx
|
||||
|
||||
tf2onnx
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ stages:
|
|||
|
||||
- task: CmdLine@2
|
||||
displayName: 'Build Python Documentation'
|
||||
condition: ne(variables['PythonVersion'], '3.9') # tensorflow not available on python 3.9
|
||||
inputs:
|
||||
script: |
|
||||
mkdir -p $HOME/.onnx
|
||||
|
|
@ -121,14 +122,15 @@ stages:
|
|||
-e NIGHTLY_BUILD \
|
||||
-e BUILD_BUILDNUMBER \
|
||||
onnxruntimecpubuild \
|
||||
bash /onnxruntime/tools/doc/builddoc.sh $(PythonManylinuxDir)/bin/ $(Build.SourcesDirectory) $(Build.BinariesDirectory)
|
||||
bash /onnxruntime_src/tools/doc/builddoc.sh $(PythonManylinuxDir)/bin/ /onnxruntime_src /build
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Python Documentation to: $(Build.ArtifactStagingDirectory)'
|
||||
condition: ne(variables['PythonVersion'], '3.9') # tensorflow not available on python 3.9
|
||||
inputs:
|
||||
SourceFolder: '$(Build.BinariesDirectory)'
|
||||
Contents: '*.zip'
|
||||
SourceFolder: '$(Build.BinariesDirectory)/docs/html'
|
||||
Contents: '**'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
|
|
|
|||
|
|
@ -2,8 +2,15 @@
|
|||
# $1 python path
|
||||
# $2 source folder
|
||||
# $3 build folder
|
||||
echo "----"
|
||||
echo $1
|
||||
echo $2
|
||||
echo $3
|
||||
echo "----"
|
||||
ls $3/Release
|
||||
echo "----"
|
||||
$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
|
||||
export PYTHONPATH=$3/Release:$PYTHONPATH
|
||||
$1/python -m sphinx -j1 -v -T -b html -d $3/docs/_doctrees/html $2/docs/python $3/docs/html
|
||||
$1/python -u $2/tools/doc/rename_folders.py $3/docs/html
|
||||
# zip -r $3/python_doc.zip $3/docs/html
|
||||
Loading…
Reference in a new issue