Skip to content

Commit

Permalink
Add htmllive
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-delsignore committed Aug 14, 2024
1 parent 63a242f commit 1011474
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ if not defined SPHINXBUILD (
)
set PYTHON=venv\Scripts\python
set SPHINXBUILD=venv\Scripts\sphinx-build
set SPHIXAUTOBUILD=venv\Scripts\sphinx-autobuild
)

if "%1" == "html" (
Expand All @@ -94,6 +95,12 @@ if "%1" == "htmlview" (
goto end
)

if "%1" == "htmllive" (
%SPHIXAUTOBUILD% --re-ignore="/\.idea/|/venv/" --open-browser --delay 0 --port 55301 . %BUILDDIR%/html
if errorlevel 1 exit /b 1
goto end
)

if "%1" == "dirhtml" (
%SPHINXBUILD% --builder dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
if errorlevel 1 exit /b 1
Expand Down

0 comments on commit 1011474

Please sign in to comment.