Add api docs and gallery on Windows build and build docs on Appveyor

This commit is contained in:
Steven Silvester
2015-09-14 21:35:43 -05:00
parent 0372cb4934
commit da3da0bc29
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -61,6 +61,10 @@ test_script:
# Run unit tests with nose
- "python -c \"import nose; nose.main()\" -v -s skimage"
# Build the docs
- pip install sphinx
- cd doc && make
artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: dist\*
+7 -1
View File
@@ -5,6 +5,9 @@ REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
if "%PYTHON%" == "" (
set PYTHON=python
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
if NOT "%PAPER%" == "" (
@@ -41,6 +44,9 @@ if "%1" == "clean" (
)
if "%1" == "html" (
mkdir source/api
%PYTHON% tools/build_modref_templates.py
cd source && %PYTHON% random_gallery.py
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
echo.
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
@@ -152,4 +158,4 @@ results in %BUILDDIR%/doctest/output.txt.
goto end
)
:end
:end