The following custom checkers were never run by the
`ci/documentation_guidelines` build and had to be run locally with
`make review`:
- `check_image_size`: Check that images are not larger than the maximum
file size allowed for their extension.
- `check_image_color_depth`: Check that PNG images are compressed to
8-bit color depth with PNGQuant.
- `check_resource_file_name`: Check that resource file names use hyphens
rather than underscores.
Since reviewers systematically perform these checks manually, it makes
sense to include them in the standard test suite. Should a check raise
a false positive (e.g., an `example_db.zip` resource file is added and
hyphens should not be used), the red CI can be safely ignored as it is
not required for merging.
closesodoo/documentation#14650
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit fixes a bug in the `check_early_line_breaks` test that would
systematically consider the `\n` character as being part of the line,
hence counting it when computing the line length.
closesodoo/documentation#12268
X-original-commit: e1a8a55c4f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
RST separators (`-----`) look similar to H3 delimiters that use the same
`-` character, but separators' length should not be checked.
X-original-commit: a54a68823f
Part-of: odoo/documentation#12268
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>