Branch: refs/heads/da-89-related-child-pages Home: https://github.com/xwiki-contrib/documentation Commit: 308990fc0d9e05fb0a1a7fc06082864aa18c7925 https://github.com/xwiki-contrib/documentation/commit/308990fc0d9e05fb0a1a7f... Author: Vincent Massol <[email protected]> Date: 2026-10-06 (Tue, 06 Oct 2026) Changed paths: A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/RelatedChildPageCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/main/resources/META-INF/components.txt A documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/RelatedChildPageCheckTest.java Log Message: ----------- DA-89: Add a check for child pages listed in the Related field * Add the relatedChildPage check, which parses the Related field of the DocumentationClass object (including the content of macros holding wiki content), resolves every link relative to the current page and reports, as an Error, the links pointing to a direct child of the current page, since child pages are already listed in the More section. * A link is a direct child link when the parent of the linked page in the nested page hierarchy is the current page; links that resolve to no wiki page (URLs, mailto, etc.) are ignored, and terminal pages are never checked since they cannot have children. * Add RelatedChildPageCheckTest covering nested, terminal, relative and page: child links, grandchildren, siblings, self links, external links, links inside macros and parse failures. 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