Skip to content

Commit

Permalink
docs: add hints how to fix rst errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jan 18, 2025
1 parent 3cace53 commit 4ae3237
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/user/checks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,12 @@ Inconsistent reStructuredText references
:Flag to enable: ``rst-text``
:Flag to ignore: ``ignore-rst-references``

reStructuredText term references do not match source.
reStructuredText term references do not match source, the typical causes for these errors are:

* Mismatched or missing backticks.
* Missing spaces or interpunction around the reference. The reStructuredText inline blocks need to be separated by non-word characters.
* The reference name is not being translated.
* Using quotes instead of backticks.

.. _check-kashida:

Expand Down Expand Up @@ -1399,7 +1404,11 @@ reStructuredText syntax error
:Flag to enable: ``rst-text``
:Flag to ignore: ``ignore-rst-syntax``

reStructuredText syntax error in the translation.
reStructuredText syntax error in the translation. Issues to look for:

* Mismatched closing/opening tags.
* Missing spaces or interpunction around the reference. The reStructuredText inline blocks need to be separated by non-word characters.
* Using quotes instead of backticks.

.. _check-reused:

Expand Down

0 comments on commit 4ae3237

Please sign in to comment.