mirror of
https://github.com/lvgl/lvgl.git
synced 2026-09-26 01:21:09 +08:00
docs(build.py): make Sphinx exit with status 1 when new warnings show up
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
5d7b2e7dcf
commit
ef4aa469bf
+2
-2
@@ -675,7 +675,7 @@ def run(args):
|
||||
# As of 22-Feb-2025, sadly the -D version=xxx is not working as documented.
|
||||
# So the version strings applicable to Latex/PDF/man pages/texinfo
|
||||
# formats are assembled by `conf.py`.
|
||||
cmd_line = f'sphinx-build -M latex "{src}" "{dst}" -j {cpu}'
|
||||
cmd_line = f'sphinx-build -M latex "{src}" "{dst}" -j {cpu} --fail-on-warning --keep-going'
|
||||
cmd(cmd_line)
|
||||
|
||||
# Generate PDF.
|
||||
@@ -756,7 +756,7 @@ def run(args):
|
||||
# with a -D options. If it should need to be used in the future,
|
||||
# the value after the '=' MUST NOT have quotation marks around it
|
||||
# or it won't work. Correct usage: f'-D version={ver}' .
|
||||
cmd_line = f'sphinx-build -M html "{src}" "{dst}" -j {cpu} {env_opt}'
|
||||
cmd_line = f'sphinx-build -M html "{src}" "{dst}" -j {cpu} {env_opt} --fail-on-warning --keep-going'
|
||||
cmd(cmd_line)
|
||||
|
||||
t2 = datetime.now()
|
||||
|
||||
Reference in New Issue
Block a user