Skip to content

Commit

Permalink
MNT: Run docs through doc8.
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Oct 4, 2016
1 parent 59e1283 commit be4bef6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ script:
- if [[ $TASK == "lint" ]]; then
flake8 siphon;
elif [[ $TASK == "docs" ]]; then
cd docs;
make html 2>docs.log;
if [ -s docs.log ]; then
pushd docs;
make html 2>../docs.log;
popd;
doc8 README.rst docs/source;
if [ -s docs.log -o $? -ne 0 ]; then
echo Doc build produced warnings or errors:;
cat docs.log;
false;
Expand Down
5 changes: 2 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sphinx>=1.3
nbconvert>=4.0
# Until nbconvert 4.1
IPython>=4.0
nbconvert>=4.1
doc8
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
max-line-length = 95
exclude = siphon/cdmr/ncStream_pb2.py, siphon/cdmr/cdmrfeature_pb2.py

[doc8]
ignore-path = docs/source/examples/generated
max-line-length = 95

[metadata]
description-file = README.rst

Expand Down

0 comments on commit be4bef6

Please sign in to comment.