We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee36d45 commit c0fc5c1Copy full SHA for c0fc5c1
1 file changed
docs/make.bat
@@ -47,6 +47,14 @@ if "%1" == "clean" (
47
)
48
49
50
+REM Check if sphinx-build is available and fallback to Python version if any
51
+%SPHINXBUILD% 2> nul
52
+if errorlevel 9009 goto sphinx_python
53
+goto spinx_ok
54
+
55
+:sphinx_python
56
57
+set SPHINXBUILD=python -m sphinx.__init__
58
%SPHINXBUILD% 2> nul
59
if errorlevel 9009 (
60
echo.
@@ -60,6 +68,9 @@ if errorlevel 9009 (
68
exit /b 1
61
69
62
70
71
+:sphinx_ok
72
73
63
74
if "%1" == "html" (
64
75
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
65
76
if errorlevel 1 exit /b 1
0 commit comments