Branch: refs/heads/vmassol/DA-99 Home: https://github.com/xwiki-contrib/documentation Commit: c2edb659e8907418b1bafa619197bb20b1747b88 https://github.com/xwiki-contrib/documentation/commit/c2edb659e8907418b1bafa... Author: Vincent Massol <[email protected]> Date: 2026-10-07 (Wed, 07 Oct 2026) Changed paths: M documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/RelatedChildPageCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/TopLevelPageCheck.java A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/TopLevelRelatedLinksCheck.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/TopLevelRelatedLinksCheckTest.java Log Message: ----------- DA-99: Add a check that a top-level page links to the same topic for the other target audiences * Add the topLevelRelatedLinks check, which applies to the top-level documentation pages only. For each other audience, when a top-level page with the same name exists in the same section (xs or extensions), it reports an Error if the Related field (including the content of macros holding wiki content) has no link to it, with the missing page as context. * Resolve the links relative to the current page, as the relatedChildPage check does, so that doc:, page: and relative references all match. Links to attachments and external URLs don't count. * Report nothing when the Related field can't be parsed or when the existence of a counterpart can't be checked (a warning is logged), to avoid false positives. * Reuse the top-level page detection and the audiences of TopLevelPageCheck, and the page link types of RelatedChildPageCheck. * Add TopLevelRelatedLinksCheckTest covering linked, missing and absent counterparts, an empty Related field, same-named pages in another section or deeper in the tree, links that don't target the counterpart, links inside macros, non top-level pages, and parse and existence check 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