Skip to content

Commit

Permalink
Makefile: Adds a target to build docs from the root dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture committed Oct 9, 2017
1 parent 26796f6 commit b2959a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ These are the basic steps needed to start developing on Sphinx.

* Build the documentation and check the output for different builders::

cd doc
make clean html latexpdf
make docs target="clean html latexpdf"

* Run code style checks and type checks (type checks require mypy)::

Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,10 @@ covertest:
.PHONY: build
build:
@$(PYTHON) setup.py build

.PHONY: docs
docs:
ifndef target
$(info You need to give a provide a target variable, e.g. `make docs target=html`.)
endif
$(MAKE) -C doc $(target)

0 comments on commit b2959a9

Please sign in to comment.