5 Commits

Author SHA1 Message Date
Antoine Vandevenne (anv)
953a8eab50 [FIX] tests: don't count EOL chars when checking remaining line space
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.

closes odoo/documentation#12273

X-original-commit: e1a8a55c4f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2025-03-05 17:20:21 +00:00
Antoine Vandevenne (anv)
740feac872 [FIX] tests: don't confuse separators for heading delimiters
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#12273
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2025-03-05 17:20:21 +00:00
Victor Feyens
b9c7cd2ee8 [ADD] tests: image compression and resource file name checkers
task-2801043

closes odoo/documentation#4870

closes odoo/documentation#5436

X-original-commit: fa90e27c4e
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-08-10 10:39:09 +02:00
Sam Lieber (sali)
e70cec1c05 [IMP] test/rst_style, Makefile: add optional review checkers
task-2801043

closes odoo/documentation#5358

X-original-commit: 8eec0e7634
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-08-09 03:08:11 +02:00
Antoine Vandevenne (anv)
7b9abb3bef [REF] tests: split checkers
task-2801043

closes odoo/documentation#3796

X-original-commit: 8e8c466892
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-03-10 11:24:06 +01:00