File: make.bat

package info (click to toggle)
pylint 4.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,276 kB
  • sloc: python: 76,515; makefile: 70
file content (48 lines) | stat: -rw-r--r-- 1,187 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@ECHO OFF

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
	set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees -T -E -W --keep-going -n .
if NOT "%PAPER%" == "" (
	set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
)

REM Check if no argument is provided, or if "help" is requested
if "%1" == "" goto help
if "%1" == "help" goto help

REM Command options
if "%1" == "install-dependencies" (
    echo Installing dependencies...
    cd .. && pip install -r doc/requirements.txt
    goto end
)


if "%1" == "html" (
	echo Building HTML...
	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
	if errorlevel 1 exit /b 1
	%SPHINXBUILD% -b linkcheck -q %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
	if errorlevel 1 exit /b 1
	echo.
	echo Link check complete; look for any errors in the above output or in %BUILDDIR%/linkcheck/output.txt.
	goto end
)


REM Help section
:help
echo. Please use `make ^<target^>` where ^<target^> is one of:
echo.
echo.  install-dependencies   to install required documentation dependencies
echo.  html                   to make standalone HTML files
echo.
goto end

:end
echo Script completed.