forked from ynput/OpenPype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_docs.bat
46 lines (39 loc) · 1.34 KB
/
make_docs.bat
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
@echo off
echo [92m^>^>^>[0m Generating pype-setup documentation, please wait ...
call "C:\Users\Public\pype_env2\Scripts\activate.bat"
setlocal enableextensions enabledelayedexpansion
set _OLD_PYTHONPATH=%PYTHONPATH%
echo [92m^>^>^>[0m Adding repos path
rem add stuff in repos
call :ResolvePath repodir "..\"
for /d %%d in ( %repodir%*) do (
echo - adding path %%d
set PYTHONPATH=%%d;!PYTHONPATH!
)
echo [92m^>^>^>[0m Adding python vendors path
rem add python vendor paths
call :ResolvePath vendordir "..\..\vendor\python\"
for /d %%d in ( %vendordir%*) do (
echo - adding path %%d
set PYTHONPATH=%%d;!PYTHONPATH!
)
echo [92m^>^>^>[0m Setting PYPE_CONFIG
call :ResolvePath pypeconfig "..\pype-config"
set PYPE_CONFIG=%pypeconfig%
echo [92m^>^>^>[0m Setting PYPE_SETUP_PATH
call :ResolvePath pyperoot "..\..\"
set PYPE_SETUP_PATH=%pyperoot%
set PYTHONPATH=%PYPE_SETUP_PATH%;%PYTHONPATH%
echo [92m^>^>^>[0m Setting PYPE_ENV
set PYPE_ENV="C:\Users\Public\pype_env2"
call "docs\make.bat" clean
sphinx-apidoc -M -f -d 6 --ext-autodoc --ext-intersphinx --ext-viewcode -o docs\source pype %PYPE_SETUP_PATH%\repos\pype\pype\vendor\*
call "docs\make.bat" html
echo [92m^>^>^>[0m Doing cleanup ...
set PYTHONPATH=%_OLD_PYTHONPATH%
set PYPE_CONFIG=
call "C:\Users\Public\pype_env2\Scripts\deactivate.bat"
exit /b
:ResolvePath
set %1=%~dpfn2
exit /b