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