python-click/docs/make.bat

37 lines
773 B
Batchfile
Raw Normal View History

2014-10-16 20:40:34 +02:00
@ECHO OFF
2018-09-06 20:55:10 +02:00
pushd %~dp0
2014-10-16 20:40:34 +02:00
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
2018-09-06 20:55:10 +02:00
set SOURCEDIR=.
2014-10-16 20:40:34 +02:00
set BUILDDIR=_build
2018-09-06 20:55:10 +02:00
set SPHINXPROJ=Jinja
2014-10-16 20:40:34 +02:00
if "%1" == "" goto help
2018-09-06 20:55:10 +02:00
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
2014-10-16 20:40:34 +02:00
echo.
2018-09-06 20:55:10 +02:00
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
2014-10-16 20:40:34 +02:00
echo.
2018-09-06 20:55:10 +02:00
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
2014-10-16 20:40:34 +02:00
)
2018-09-06 20:55:10 +02:00
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
2014-10-16 20:40:34 +02:00
2018-09-06 20:55:10 +02:00
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
2014-10-16 20:40:34 +02:00
:end
2018-09-06 20:55:10 +02:00
popd