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