xref: /aosp_15_r20/external/pytorch/docs/make.bat (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Worker@ECHO OFF
2*da0073e9SAndroid Build Coastguard Worker
3*da0073e9SAndroid Build Coastguard Workerpushd %~dp0
4*da0073e9SAndroid Build Coastguard Worker
5*da0073e9SAndroid Build Coastguard WorkerREM Command file for Sphinx documentation
6*da0073e9SAndroid Build Coastguard Worker
7*da0073e9SAndroid Build Coastguard Workerif "%SPHINXBUILD%" == "" (
8*da0073e9SAndroid Build Coastguard Worker        set SPHINXBUILD=sphinx-build
9*da0073e9SAndroid Build Coastguard Worker)
10*da0073e9SAndroid Build Coastguard Workerset SOURCEDIR=source
11*da0073e9SAndroid Build Coastguard Workerset BUILDDIR=build
12*da0073e9SAndroid Build Coastguard Workerset SPHINXPROJ=PyTorch
13*da0073e9SAndroid Build Coastguard Workerset SPHINXOPTS=-j auto
14*da0073e9SAndroid Build Coastguard Worker
15*da0073e9SAndroid Build Coastguard Workerif "%1" == "" goto help
16*da0073e9SAndroid Build Coastguard Worker
17*da0073e9SAndroid Build Coastguard Worker%SPHINXBUILD% >NUL 2>NUL
18*da0073e9SAndroid Build Coastguard Workerif errorlevel 9009 (
19*da0073e9SAndroid Build Coastguard Worker        echo.
20*da0073e9SAndroid Build Coastguard Worker        echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
21*da0073e9SAndroid Build Coastguard Worker        echo.installed, then set the SPHINXBUILD environment variable to point
22*da0073e9SAndroid Build Coastguard Worker        echo.to the full path of the 'sphinx-build' executable. Alternatively you
23*da0073e9SAndroid Build Coastguard Worker        echo.may add the Sphinx directory to PATH.
24*da0073e9SAndroid Build Coastguard Worker        echo.
25*da0073e9SAndroid Build Coastguard Worker        echo.If you don't have Sphinx installed, grab it from
26*da0073e9SAndroid Build Coastguard Worker        echo.http://sphinx-doc.org/
27*da0073e9SAndroid Build Coastguard Worker        exit /b 1
28*da0073e9SAndroid Build Coastguard Worker)
29*da0073e9SAndroid Build Coastguard Worker
30*da0073e9SAndroid Build Coastguard Worker%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
31*da0073e9SAndroid Build Coastguard Workergoto end
32*da0073e9SAndroid Build Coastguard Worker
33*da0073e9SAndroid Build Coastguard Worker:help
34*da0073e9SAndroid Build Coastguard Worker%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
35*da0073e9SAndroid Build Coastguard Worker
36*da0073e9SAndroid Build Coastguard Worker:end
37*da0073e9SAndroid Build Coastguard Workerpopd
38