* Add yamllint check for RST code listings.
* Address review comments.
* Sort languages and remove no longer needed duplicates.
* Enable warnings, but disable all failing rules.
* Improve formulation.
Co-authored-by: Don Naro <dnaro@redhat.com>
* Show allowed languages when no or invalid language is supplied. Improve line lengths.
* Make sure that 'yamllint .' passes.
* Fix indentation issues introduced in #2095.
---------
Co-authored-by: Don Naro <dnaro@redhat.com>
Now that the docs checkers are integrated into the noxfile, we can use
the nox session in CI instead of having to maintain separate CI
configurations for these jobs.
This change renames tests/sanity.py -> tests/checkers.py.
The term sanity is not very clear and potentially offensive, and it's
already used by `ansible-test sanity` to mean something different.
Fixes: https://github.com/ansible/ansible-documentation/issues/530