slachiewicz opened a new pull request, #1138:
URL: https://github.com/apache/maven-doxia/pull/1138
An APT link such as `{{{doxia-apt.html}text}}` lacks the `./` prefix, so the
parser turns it into a same-page anchor, `#doxia-apt.html`, and the link is
broken in the output. Doxia 1.x warned about this; the move to SLF4J in
2.0.0-M1 logged it at debug level, so a site build now gives no sign of it.
This restores the warning, naming the document and the line where the block
starts:
```text
[WARNING] src/site/apt/index.apt, line 7: Ambiguous link 'doxia-apt.html'.
If this is a local link, prepend "./"!
```
The warning is not repeated on the second parse done by the `toc` macro, and
literal `#`-prefixed anchors are not reported. The "Modified invalid link"
messages in the APT and XHTML5 parsers had the same downgrade and are left at
debug here.
Verified: `mvn site` with maven-site-plugin 3.22.0 and this module → the
warning above; full `mvn verify` passes.
---
- [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)
- [x] 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]