Debian Codegraph @

scripts/build_doc.bat

raw
1 @echo off
2 REM This script was copied from PythonQwt project
3 REM ======================================================
4 REM Documentation build script
5 REM ======================================================
6 REM Licensed under the terms of the MIT License
7 REM Copyright (c) 2020 Pierre Raybaut
8 REM (see PythonQwt LICENSE file for more details)
9 REM ======================================================
10 call %~dp0utils GetScriptPath SCRIPTPATH
11 call %FUNC% GetLibName LIBNAME
12 call %FUNC% GetModName MODNAME
13 call %FUNC% SetPythonPath
14 call %FUNC% UsePython
15 call %FUNC% GetVersion CDL_VERSION
16 cd %SCRIPTPATH%\..
17 %PYTHON% doc\update_requirements.py
18 set PATH=C:\Program Files\HTML Help Workshop;C:\Program Files (x86)\HTML Help Workshop;%PATH%
19 sphinx-build -b latex doc build\doc
20 cd build\doc
21 pdflatex -interaction=nonstopmode -quiet %LIBNAME%.tex
22 @REM Build again to fix table of contents
23 pdflatex -interaction=nonstopmode -quiet %LIBNAME%.tex
24 start %LIBNAME%.pdf
25 call %FUNC% EndOfScript