annotate docs/make.bat @ 21:8b9e9ef8a88a draft default tip

Note about order of assembly in the docs
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Wed, 30 Aug 2017 15:22:43 +0200
parents 0c2fb0e386fa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
1 @ECHO OFF
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
2
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
3 pushd %~dp0
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
4
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
5 REM Command file for Sphinx documentation
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
6
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
7 if "%SPHINXBUILD%" == "" (
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
8 set SPHINXBUILD=sphinx-build
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
9 )
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
10 set SOURCEDIR=.
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
11 set BUILDDIR=_build
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
12 set SPHINXPROJ=PewPew
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
13
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
14 if "%1" == "" goto help
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
15
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
16 %SPHINXBUILD% >NUL 2>NUL
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
17 if errorlevel 9009 (
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
18 echo.
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
19 echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
20 echo.installed, then set the SPHINXBUILD environment variable to point
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
21 echo.to the full path of the 'sphinx-build' executable. Alternatively you
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
22 echo.may add the Sphinx directory to PATH.
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
23 echo.
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
24 echo.If you don't have Sphinx installed, grab it from
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
25 echo.http://sphinx-doc.org/
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
26 exit /b 1
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
27 )
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
28
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
29 %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
30 goto end
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
31
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
32 :help
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
33 %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
34
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
35 :end
0c2fb0e386fa Refactor the pew.py library
Radomir Dopieralski <sheep-devel@sheep.art.pl>
parents:
diff changeset
36 popd