ayon-core/make_docs.bat
2020-04-09 12:44:24 +02:00

46 lines
1.3 KiB
Batchfile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ^>^>^> Generating pype-setup documentation, please wait ...
call "C:\Users\Public\pype_env2\Scripts\activate.bat"
setlocal enableextensions enabledelayedexpansion
set _OLD_PYTHONPATH=%PYTHONPATH%
echo ^>^>^> 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 ^>^>^> 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 ^>^>^> Setting PYPE_CONFIG
call :ResolvePath pypeconfig "..\pype-config"
set PYPE_CONFIG=%pypeconfig%
echo ^>^>^> Setting PYPE_SETUP_PATH
call :ResolvePath pyperoot "..\..\"
set PYPE_SETUP_PATH=%pyperoot%
set PYTHONPATH=%PYPE_SETUP_PATH%;%PYTHONPATH%
echo ^>^>^> 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 ^>^>^> 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