make.bat 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @ECHO OFF
  2. pushd %~dp0
  3. REM Touch api docs to always trigger a build (otherwise updating a docstring wouldn't be enough to trigger a build)
  4. cd api
  5. copy * /B+ ,,/Y
  6. cd ..
  7. REM Command file for Sphinx documentation
  8. if "%SPHINXBUILD%" == "" (
  9. set SPHINXBUILD=sphinx-build
  10. )
  11. set SOURCEDIR=.
  12. %set BUILDDIR=_build
  13. set BUILDDIR=../flexmeasures/ui/static/documentation/
  14. set SPHINXPROJ=FLEXMEASURES
  15. if "%1" == "" goto help
  16. %SPHINXBUILD% >NUL 2>NUL
  17. if errorlevel 9009 (
  18. echo.
  19. echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
  20. echo.installed, then set the SPHINXBUILD environment variable to point
  21. echo.to the full path of the 'sphinx-build' executable. Alternatively you
  22. echo.may add the Sphinx directory to PATH.
  23. echo.
  24. echo.If you don't have Sphinx installed, grab it from
  25. echo.http://sphinx-doc.org/
  26. exit /b 1
  27. )
  28. %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
  29. goto end
  30. :help
  31. %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
  32. :end
  33. popd