Skip to content

Commit 4046563

Browse files
andrewimesonadrienverge
authored andcommitted
docs: Explicitly specify language even when it's plain text
rstcheck succeeds with a failure (heh) when there's a code block without a language specified. This can lead to false negatives as the file is no longer being checked by rstcheck. Error: An `AttributeError` error occured. This is most propably due to a code block directive (code/code-block/sourcecode) without a specified language. This may result in a false negative for source: 'docs/disable_with_comments.rst'. See https://rstcheck-core.readthedocs.io/en/latest/faq/#code-blocks-without-language-sphinx for more information. Success! No issues detected.
1 parent 06db2af commit 4046563

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/disable_with_comments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ post-template processing).
117117
Example of a Jinja2 code that cannot be parsed as YAML because it contains
118118
invalid tokens ``{%`` and ``%}``:
119119

120-
.. code-block::
120+
.. code-block:: text
121121
122122
# This file IS NOT valid YAML and will produce syntax errors
123123
{% if extra_info %}

0 commit comments

Comments
 (0)