-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When we have a '.. only' rst syntax error we see following output:
** Building RST documentation using Sphinx.
Exception occurred:
File "/usr/local/lib/python3.7/dist-packages/sphinx/util/tags.py", line 68, in eval_condition
raise ValueError('chunk after expression')
ValueError: chunk after expression
The full traceback has been saved in /tmp/sphinx-err-j_h31t85.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [Makefile:110: doc] Error 2
ERROR: Job failed: exit code 1
This is not very informative.
At the very least, useful would be to print the rst error line number and file.
Is this possible in this sphinx_selective_exclude?
The error in the '.. only' clause I added was not having a blank line after the '.. only' clause.
So this triggers this exception:
.. only:: SOMETHINGTRUE
we want to write something without newline
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels