From f172c1e8c6caaab1d7a1485c1d3aea1460d89f78 Mon Sep 17 00:00:00 2001 From: Matt Patrick Date: Mon, 16 Nov 2020 14:53:58 -0500 Subject: [PATCH] Adding makefile target to install docs dependencies --- .travis.yml | 2 +- Makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 22fb90bd..5c557345 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,7 +71,7 @@ jobs: - stage: docker deploy if: tag IS present - install: skip + install: make deps-docs before_script: make docker-login script: make publish-docker VERSION=$TRAVIS_TAG after_success: skip diff --git a/Makefile b/Makefile index 96e98f4d..386d41f9 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,9 @@ docker-build: docs ## build the docker images docker tag $(DOCKER_NAME):docs-$(VERSION) $(DOCKER_NAME):docs # Documentation +docs-deps: ## install dependencies for documentation + pip install -c requirements.txt sphinx sphinx_rtd_theme + docs: ## generate Sphinx HTML documentation, including API docs sphinx-apidoc -o docs/ $(MODULE_NAME) $(MAKE) -C docs html @@ -163,4 +166,4 @@ publish-docker: docker-build ## push the docker images ## Add this back in one 3.0 is released #docker push $(DOCKER_NAME):python3 #docker push $(DOCKER_NAME):python2 - #docker push $(DOCKER_NAME):latest \ No newline at end of file + #docker push $(DOCKER_NAME):latest