Skip to content

Commit

Permalink
Fix Travis CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzosaino committed Aug 20, 2018
1 parent 70fa45b commit e00a6f3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,6 +15,7 @@ MANIFEST
doc/build
doc/source/apidoc/generated
doc/source/examples
doc/tmp

# Ignore local files
notes
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -22,7 +22,7 @@ dist: clean doc
python setup.py sdist

# Install the library in development mode
install: clean
install:
pip install --upgrade pip setuptools
pip install --upgrade -r requirements.txt
pip install --upgrade -e .
Expand Down
22 changes: 13 additions & 9 deletions doc/Makefile
Expand Up @@ -23,17 +23,21 @@ help:

# Autogenerate documentation for examples and all classes and functions
init:
rm -rf $(TMPDIR)
rm -rf $(EXSRCDOCDIR)
rm -rf $(GENAPIDOCDIR)
mkdir -p $(TMPDIR)
cp $(SOURCEDIR)/conf.py $(TMPDIR)/conf.py
python $(SCRIPTSDIR)/make_apidoc.py $(TMPDIR)/index.rst $(GENAPIDOCDIR)
sphinx-build -b linkcheck $(TMPDIR) $(BUILDDIR)
rm -rf $(TMPDIR)
python $(SCRIPTSDIR)/make_examples.py $(EXCODEDIR) $(EXSRCDOCDIR)
@rm -rf $(TMPDIR)
@rm -rf $(EXSRCDOCDIR)
@rm -rf $(GENAPIDOCDIR)
@mkdir -p $(TMPDIR)
@cp $(SOURCEDIR)/conf.py $(TMPDIR)/conf.py
@python $(SCRIPTSDIR)/make_apidoc.py $(TMPDIR)/index.rst $(GENAPIDOCDIR)
@sphinx-build -b linkcheck $(TMPDIR) $(BUILDDIR)
@rm -rf $(TMPDIR)
@python $(SCRIPTSDIR)/make_examples.py $(EXCODEDIR) $(EXSRCDOCDIR)

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile init
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

clean:
@rm -rf $(TMPDIR)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) clean

0 comments on commit e00a6f3

Please sign in to comment.