I just noticed that WARNOPTS is a left-over from a refactoring...
Will fix it in v2.
> > > # the i18n builder cannot share the environment and doctrees with the others
> > > I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
> > >
> >
> > Does not help with invalid references at least:
> >
> > https://app.readthedocs.org/projects/kas/builds/33246423/
> >
>
> ...which is due to our own code: We swallow that error and just return
> an empty string, don't we?
Right, the error is swallowed before it even reaches sphinx. This is
fixed in the port to a plugin instead of the shell script.
>
> But also that "WARNING: Option list ends without a blank line;
> unexpected unindent" is not causing any failure.
Does this depend on the sphinx-build version? I have 9.1.0 which
correctly detects the error and emits 1:
make html
[...]
_build/kas-container-usage-options.inc:27: WARNING: Option list ends
without a blank line; unexpected unindent. [docutils]
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets...
copying static files...
Writing evaluated template result to
/home/user/src/kas/docs/_build/html/_static/language_data.js
Writing evaluated template result to
/home/user/src/kas/docs/_build/html/_static/documentation_options.js
Writing evaluated template result to
/home/user/src/kas/docs/_build/html/_static/basic.css
Writing evaluated template result to
/home/user/src/kas/docs/_build/html/_static/js/versions.js
copying static files: done
copying extra files...
copying extra files: done
copying assets: done
writing output... [100%] userguide/project-configuration
generating indices... genindex py-modindex done
highlighting module code... [100%] kas.repos
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build finished with problems, 1 warning (with warnings treated as
errors).
make: *** [Makefile:53: html] Error 1
Or is it a RTD specialty?
Felix
Hmm... we indeed catch the error right after raising it. Will send a
fix for this. Still I'm wondering why a missing key leads to error code
1 on my system (with the current implementation), while not on RTD.
Investigating...
Felix