Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1af4ca0

Browse files
committed
Docs set warningsaserrors=True as default
1 parent f7fdaf8 commit 1af4ca0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ script:
129129
gdb -return-child-result -batch -ex r -ex bt --args python tests.py -s --processes=$NPROC --process-timeout=300 $TEST_ARGS
130130
else
131131
cd doc
132-
python make.py html --small --warningsaserrors
132+
python make.py html --small
133133
# We don't build the LaTeX docs here, so linkchecker will complain
134134
touch build/html/Matplotlib.pdf
135135
linkchecker build/html/index.html

doc/make.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def all():
138138

139139

140140
small_docs = False
141-
warnings_as_errors = False
141+
warnings_as_errors = True
142142

143143
# Change directory to the one containing this file
144144
current_dir = os.getcwd()
@@ -184,14 +184,14 @@ def all():
184184
parser.add_argument("--small",
185185
help="Smaller docs with only low res png figures",
186186
action="store_true")
187-
parser.add_argument("--warningsaserrors",
188-
help="Turn Sphinx warnings into errors",
187+
parser.add_argument("--allowsphinxwarnings",
188+
help="Don't turn Sphinx warnings into errors",
189189
action="store_true")
190190
args = parser.parse_args()
191191
if args.small:
192192
small_docs = True
193-
if args.warningsaserrors:
194-
warnings_as_errors = True
193+
if args.allowsphinxwarnings:
194+
warnings_as_errors = False
195195

196196
if args.cmd:
197197
for command in args.cmd:

0 commit comments

Comments
 (0)