Skip to content

Commit b603868

Browse files
lorenzo-delsignorehugovkAA-Turner
authored
Add htmllive to make.bat (#1373)
* Add htmllive * Fix typo Co-authored-by: Hugo van Kemenade <[email protected]> * Whitespace --------- Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent b28b066 commit b603868

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

make.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ if not defined SPHINXBUILD (
6767
)
6868
set PYTHON=venv\Scripts\python
6969
set SPHINXBUILD=venv\Scripts\sphinx-build
70+
set SPHINXAUTOBUILD=venv\Scripts\sphinx-autobuild
7071
)
7172

7273
if "%1" == "htmlview" (
@@ -80,6 +81,12 @@ if "%1" == "htmlview" (
8081
goto end
8182
)
8283

84+
if "%1" == "htmllive" (
85+
%SPHINXAUTOBUILD% --re-ignore="/\.idea/|/venv/" --open-browser --delay 0 --port 55301 . %BUILDDIR%/html
86+
if errorlevel 1 exit /b 1
87+
goto end
88+
)
89+
8390
%SPHINXBUILD% -M %1 "." %BUILDDIR% %_ALL_SPHINX_OPTS%
8491
goto end
8592

0 commit comments

Comments
 (0)