rohan4naik opened a new pull request, #759:
URL: https://github.com/apache/maven-doxia-sitetools/pull/759

   Fixes #758.
   
   Menu-derived breadcrumbs currently create the menu entry without an href. 
Give that entry the href of the first direct menu item with a non-empty href, 
as proposed in the issue, and omit the menu entry when none of its items has 
one. Keep walking category items to find the current page.
   
   This fixes the derived link at its source instead of changing skin handling 
of empty hrefs, which could affect explicitly declared breadcrumbs. The 
existing declared-link deduplication also applies to the menu's new href.
   
   Updated the unit and renderer-context tests for the link, null/empty item 
hrefs, category-only menus, unnamed menus and duplicate suppression. Seven 
assertions fail without the production change and pass with it. The context 
test also verifies that the shared site model stays untouched.
   
   Validation: `mvn spotless:apply verify` passes across all six modules on 
Temurin JDK 17.0.21.1 and Maven 3.10.1 (121 tests: 120 passed, 1 skipped); `git 
diff --check` passes. The opt-in SCM integration profile was not run; SCM 
production code is unchanged.
   
   AI-assisted with OpenAI Codex; changes and test results reviewed.
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to