Skip to content

Commit 3a48716

Browse files
committed
Fixed #71 -- help sphinx work on Windows.
1 parent 868d037 commit 3a48716

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

docs/_static

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
# Add any paths that contain custom static files (such as style sheets) here,
136136
# relative to this directory. They are copied after the builtin static files,
137137
# so a file named "default.css" will overwrite the builtin "default.css".
138-
html_static_path = ['_static']
138+
html_static_path = ['../web/static']
139139

140140
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
141141
# using the given strftime format.

docs/make.bat

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ REM Command file for Sphinx documentation
55
if "%SPHINXBUILD%" == "" (
66
set SPHINXBUILD=sphinx-build
77
)
8-
set BUILDDIR=_build
9-
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
10-
set I18NSPHINXOPTS=%SPHINXOPTS% .
8+
set BUILDDIR=_build
9+
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
10+
set I18NSPHINXOPTS=%SPHINXOPTS% .
1111
if NOT "%PAPER%" == "" (
1212
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
1313
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
@@ -115,9 +115,9 @@ if "%1" == "qthelp" (
115115
echo.
116116
echo.Build finished; now you can run "qcollectiongenerator" with the ^
117117
.qhcp project file in %BUILDDIR%/qthelp, like this:
118-
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\deis.qhcp
118+
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\deis.qhcp
119119
echo.To view the help file:
120-
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\deis.ghc
120+
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\deis.ghc
121121
goto end
122122
)
123123

@@ -239,4 +239,14 @@ if "%1" == "pseudoxml" (
239239
goto end
240240
)
241241

242+
if "%1" == "server" (
243+
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
244+
if errorlevel 1 exit /b 1
245+
cd %BUILDDIR%/dirhtml
246+
echo.
247+
echo.Build finished. Open http://127.0.0.1:8000/ in your browser.
248+
python -m SimpleHTTPServer 8000
249+
goto end
250+
)
251+
242252
:end

0 commit comments

Comments
 (0)