[xwiki-contrib/documentation] 5c385f: DA-75: The Gallery check reports an error for imag...
Branch: refs/heads/master Home: https://github.com/xwiki-contrib/documentation Commit: 5c385ff6a41e5ce715600fc8003f7ff1efd55045 https://github.com/xwiki-contrib/documentation/commit/5c385ff6a41e5ce715600f... Author: Vincent Massol <[email protected]> Date: 2026-10-06 (Tue, 06 Oct 2026) Changed paths: M documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/ImageGalleryCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/ImageGalleryCheckTest.java Log Message: ----------- DA-75: The Gallery check reports an error for images that are not next to each other, and for images inside code examples (#17) * Rewrite ImageGalleryCheck on the parsed XDOM instead of a regex over the raw page source: report sibling images ([[image:...]]) and Image macros separated only by spaces, new lines or empty lines * Check the content, the FAQ and the macros whose content is wiki content (reusing AbstractXDOMDocumentationCheck), so images shown inside non-wiki content macros such as {{code}} are no longer reported; the content of the Gallery macro is not checked * Use "Image references : <ref1>, <ref2>, ..." as the violation context * Add tests for the reported reproduction cases, standalone macros, image syntax, wiki content macros, the Gallery macro and the FAQ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/documentation/settings/notifications
participants (1)
-
XWiki Notifications