File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 1717# Catch-all target: route all unknown targets to Sphinx using the new
1818# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919% : Makefile
20- @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
20+ @$(SPHINXBUILD ) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
Original file line number Diff line number Diff line change 1+ @ ECHO OFF
2+
3+ pushd %~dp0
4+
5+ REM Command file for Sphinx documentation
6+
7+ if " %SPHINXBUILD% " == " " (
8+ set SPHINXBUILD = python -msphinx
9+ )
10+ set SPHINXOPTS =
11+ set SPHINXBUILD = sphinx-build
12+ set SOURCEDIR = .
13+ set BUILDDIR = _build
14+ set SPHINXPROJ = ReadtheDocsSphinxTheme
15+
16+ if " %1 " == " " goto help
17+
18+ %SPHINXBUILD% > NUL 2 > NUL
19+ if errorlevel 9009 (
20+ echo .
21+ echo .The Sphinx module was not found. Make sure you have Sphinx installed,
22+ echo .then set the SPHINXBUILD environment variable to point to the full
23+ echo .path of the 'sphinx-build' executable. Alternatively you may add the
24+ echo .Sphinx directory to PATH.
25+ echo .
26+ echo .If you don't have Sphinx installed, grab it from
27+ echo .http://sphinx-doc.org/
28+ exit /b 1
29+ )
30+
31+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
32+ goto end
33+
34+ :help
35+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
36+
37+ :end
38+ popd
You can’t perform that action at this time.
0 commit comments