Skip to content

Commit

Permalink
docs: warnings as errors
Browse files Browse the repository at this point in the history
'make docs' will build docs with warnings as errors.  Travis will now
check docs in a build cycle.
  • Loading branch information
dwaynebailey committed Mar 11, 2014
1 parent 77c43a9 commit 2da1676
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ install:
- pip install pycurl
- sudo apt-get install python-gtk2
script:
- make docs
- python setup.py install
notifications:
email:
Expand Down
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
SRC_DIR = .
DOCS_DIR = docs

.PHONY: all pot get-translations help update-translations
.PHONY: all docs pot get-translations help update-translations

all: help

docs:
# The following creates the HTML docs.
# NOTE: cd and make must be in the same line.
cd ${DOCS_DIR}; make SPHINXOPTS="-W -q" html

pot:
cd ${SRC_DIR}/po; ./intltool-update --pot

Expand All @@ -29,6 +35,7 @@ help:
@echo "Help"
@echo "----"
@echo
@echo " docs - build Sphinx docs"
@echo " pot - update the POT translations templates"
@echo " get-translations - retrieve Pootle translations from server (requires ssh config for pootletranslations)"
@echo " update-translations - update *.po against virtaal.pot"
Expand Down

0 comments on commit 2da1676

Please sign in to comment.