Add "docs" target to root makefile

This commit is contained in:
Régis Behmo 2020-01-10 15:30:09 +01:00
parent e8115138ae
commit 42359b8f02
2 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@ build:docs:
- apk add --no-cache make
- make ci-install-alpine-requirements
- pip install -r requirements/docs.txt
- cd docs && make
- make docs
artifacts:
paths:
- docs/_build/html

View File

@ -1,9 +1,13 @@
.DEFAULT_GOAL := help
.PHONY: docs
SRC_DIRS = ./tutor ./tests ./bin
BLACK_OPTS = --exclude templates ${SRC_DIRS}
###### Development
docs: ## Build html documentation
$(MAKE) -C docs
compile-requirements: ## Compile requirements files
pip-compile -o requirements/base.txt requirements/base.in
pip-compile -o requirements/dev.txt requirements/dev.in