Skip to content

Commit

Permalink
Adding makefile target to install docs dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hazmat345 committed Nov 16, 2020
1 parent 9fc7d18 commit f172c1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
#docker push $(DOCKER_NAME):latest

0 comments on commit f172c1e

Please sign in to comment.