adds sphinx

This commit is contained in:
Romain Dorgueil
2016-12-09 08:34:39 +01:00
parent 22237b0555
commit c224c7face
8 changed files with 11 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# This file has been auto-generated.
# All changes will be lost, see Projectfile.
#
# Updated at 2016-12-09 05:37:33.079110
# Updated at 2016-12-09 08:33:52.136641
PYTHON ?= $(shell which python)
PYTHON_BASENAME ?= $(shell basename $(PYTHON))
@ -12,8 +12,12 @@ VIRTUAL_ENV ?= .virtualenv-$(PYTHON_BASENAME)
PIP ?= $(VIRTUAL_ENV)/bin/pip
PYTEST ?= $(VIRTUAL_ENV)/bin/pytest
PYTEST_OPTIONS ?= --capture=no --cov=bonobo --cov-report html
SPHINX_OPTS ?=
SPHINX_BUILD ?= $(VIRTUAL_ENV)/bin/sphinx-build
SPHINX_SOURCEDIR ?= doc
SPHINX_BUILDDIR ?= $(SPHINX_SOURCEDIR)/_build
.PHONY: clean install install-dev lint test
.PHONY: clean doc install install-dev lint test
# Installs the local project dependencies.
install: $(VIRTUAL_ENV)
@ -43,3 +47,6 @@ lint: install-dev
test: install-dev
$(PYTEST) $(PYTEST_OPTIONS) tests
doc: install-dev
$(SPHINX_BUILD) -b html -D latex_paper_size=a4 $(SPHINX_OPTS) $(SPHINX_SOURCEDIR) $(SPHINX_BUILDDIR)/html