Skip to content

Commit f1358e3

Browse files
committed
Require that sphinx issue no warnings in CI
1 parent 8c1e85c commit f1358e3

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ script:
2323
- nosetests numpydoc
2424
- |
2525
cd ../doc
26-
make html
27-
make latexpdf
26+
make SPHINXOPTS='-W' html
27+
make SPHINXOPTS='-W' latexpdf

doc/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'sphinx.ext.autosummary',
4242
'sphinx.ext.doctest',
4343
'sphinx.ext.intersphinx',
44-
'sphinx.ext.pngmath',
44+
'sphinx.ext.imgmath',
4545
'sphinx.ext.todo',
4646
'numpydoc',
4747
'sphinx.ext.ifconfig',
@@ -149,13 +149,12 @@
149149
html_sidebars = {}
150150

151151
html_title = "%s v%s Manual" % (project, version)
152-
html_static_path = ['_static']
153152
html_last_updated_fmt = '%b %d, %Y'
154153

155154
# Add any paths that contain custom static files (such as style sheets) here,
156155
# relative to this directory. They are copied after the builtin static files,
157156
# so a file named "default.css" will overwrite the builtin "default.css".
158-
html_static_path = ['_static']
157+
html_static_path = [] # ['_static']
159158

160159
# Add any extra paths that contain custom files (such as robots.txt or
161160
# .htaccess) here, relative to this directory. These files are copied

doc/format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ The sections of a function's docstring are:
374374
and neural-network techniques," Computers & Geosciences, vol. 22,
375375
pp. 585-588, 1996.
376376

377-
which renders as
377+
which renders as [1]_:
378378

379379
.. [1] O. McNoleg, "The integration of GIS, remote sensing,
380380
expert systems and adaptive co-kriging for environmental habitat

0 commit comments

Comments
 (0)