From d2c4ccba59ffc032228566699b04cc1769bd56da Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 15 Sep 2015 07:32:33 -0500 Subject: [PATCH] Build from the right directory and add api to latex command --- appveyor.yml | 9 ++++----- doc/make.bat | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 439930fe..b0bfc513 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -46,11 +46,14 @@ install: - "pip install --pre --no-index --find-links dist/ scikit-image" - # Not a .NET project, we build scikit-image in the install step instead build: false test_script: + # Build the docs + - pip install sphinx + - cd doc && make + # Change to a non-source folder to make sure we run the tests on the # installed library. - "cd C:\\" @@ -61,10 +64,6 @@ 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\* diff --git a/doc/make.bat b/doc/make.bat index 68cf7efc..e7c61181 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -115,6 +115,8 @@ if "%1" == "epub" ( ) if "%1" == "latex" ( + mkdir source/api + %PYTHON% tools/build_modref_templates.py %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex echo. echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.