Make the build more strict on documentation errors
* Detect undefined labels. This can be tested by adding :ref:`nonexistent` to a documentation rst file; attempting to build docs will fail. Fixed the undefined label in `9.8.1-notes.rst`. * Detect errors. While we have plenty of warnings, we can at least enforce that Sphinx does not report errors. Fixed the error in `required_type_arguments.rst`. Unrelated change: I have documented that the `-dlint` enables `-fcatch-nonexhaustive-cases`, as can be verified by checking `enableDLint`.
Showing
- docs/users_guide/9.8.1-notes.rst 1 addition, 1 deletiondocs/users_guide/9.8.1-notes.rst
- docs/users_guide/debugging.rst 1 addition, 1 deletiondocs/users_guide/debugging.rst
- docs/users_guide/exts/required_type_arguments.rst 2 additions, 2 deletionsdocs/users_guide/exts/required_type_arguments.rst
- hadrian/src/Rules/Documentation.hs 6 additions, 0 deletionshadrian/src/Rules/Documentation.hs
Loading
Please register or sign in to comment