Welcome to mirror list, hosted at ThFree Co, Russian Federation.

doc_py.cmd « windows « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1366dada6f99e02d6750f6372af22bf2422a33c3 (plain)
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
set SOURCEDIR=%BLENDER_DIR%/doc/python_api/sphinx-in 
set BUILDDIR=%BLENDER_DIR%/doc/python_api/sphinx-out
if "%BF_LANG%" == "" set BF_LANG=en
set SPHINXOPTS=-j auto -D language=%BF_LANG%

call "%~dp0\find_sphinx.cmd"

if EXIST "%SPHINX_BIN%" (
    goto detect_sphinx_done
)

echo unable to locate sphinx-build, run "set sphinx_BIN=full_path_to_sphinx-build.exe"
exit /b 1

:detect_sphinx_done

call "%~dp0\find_blender.cmd"

if EXIST "%BLENDER_BIN%" (
    goto detect_blender_done
)

echo unable to locate blender, run "set BLENDER_BIN=full_path_to_blender.exe"
exit /b 1

:detect_blender_done

%BLENDER_BIN% ^
	--background -noaudio --factory-startup ^
	--python %BLENDER_DIR%/doc/python_api/sphinx_doc_gen.py

%SPHINX_BIN% -b html %SPHINXOPTS% %O% %SOURCEDIR% %BUILDDIR%

:EOF