mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 20:22:51 +08:00
Add api docs and gallery on Windows build and build docs on Appveyor
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user