Branch: refs/heads/da-91-documentation-location Home: https://github.com/xwiki-contrib/documentation Commit: aca525f994ebff8238748fc8f6a62f6b07c41f49 https://github.com/xwiki-contrib/documentation/commit/aca525f994ebff8238748f... Author: Vincent Massol <[email protected]> Date: 2026-10-07 (Wed, 07 Oct 2026) Changed paths: A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/LocationCheck.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/LocationCheckTest.java Log Message: ----------- DA-91: Add a check that documentation pages are in the right location * Add the location check, which reports an Error when a documentation page is not in the main wiki under documentation.xs.<audience> or documentation.extensions.<audience>, where <audience> is user, admin or dev (the audience page itself does not count as being under it). * Report a second Error when the page is in the documentation tree but the audience part of its location does not match the target of its DocumentationClass object (user -> user, administrator -> admin, developer -> dev). Pages with no target are only checked for the location. * The violation context gives the page reference, the target and the expected location prefix. * Add LocationCheckTest covering valid locations, a missing target, a mismatched audience, another wiki, the old Documentation space, invalid section and audience names, and pages located directly in a section or on the audience page itself. 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